Skip to content

Commit 0aa5fa9

Browse files
committed
[clang][Interp][NFC] Improve Pointer::print()
1 parent 58b9564 commit 0aa5fa9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

clang/lib/AST/Interp/Pointer.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -181,12 +181,12 @@ void Pointer::print(llvm::raw_ostream &OS) const {
181181
if (isBlockPointer()) {
182182
OS << "Block) {";
183183

184-
if (PointeeStorage.BS.Base == RootPtrMark)
185-
OS << "rootptr, ";
184+
if (isRoot())
185+
OS << "rootptr(" << PointeeStorage.BS.Base << "), ";
186186
else
187187
OS << PointeeStorage.BS.Base << ", ";
188188

189-
if (Offset == PastEndMark)
189+
if (isElementPastEnd())
190190
OS << "pastend, ";
191191
else
192192
OS << Offset << ", ";

0 commit comments

Comments
 (0)