Skip to content

Commit 9eb8a13

Browse files
committed
[clang][Interp][NFC] Fix a const-correctness warning
1 parent 9ece3eb commit 9eb8a13

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/lib/AST/Interp/MemberPointer.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ class MemberPointer final {
8686
bool hasBase() const { return !Base.isZero(); }
8787

8888
void print(llvm::raw_ostream &OS) const {
89-
OS << "MemberPtr(" << Base << " " << (void *)Dcl << " + " << PtrOffset
89+
OS << "MemberPtr(" << Base << " " << (const void *)Dcl << " + " << PtrOffset
9090
<< ")";
9191
}
9292

0 commit comments

Comments
 (0)