Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 58b9564 commit 0aa5fa9Copy full SHA for 0aa5fa9
1 file changed
clang/lib/AST/Interp/Pointer.cpp
@@ -181,12 +181,12 @@ void Pointer::print(llvm::raw_ostream &OS) const {
181
if (isBlockPointer()) {
182
OS << "Block) {";
183
184
- if (PointeeStorage.BS.Base == RootPtrMark)
185
- OS << "rootptr, ";
+ if (isRoot())
+ OS << "rootptr(" << PointeeStorage.BS.Base << "), ";
186
else
187
OS << PointeeStorage.BS.Base << ", ";
188
189
- if (Offset == PastEndMark)
+ if (isElementPastEnd())
190
OS << "pastend, ";
191
192
OS << Offset << ", ";
0 commit comments