[clang] 9eb8a13 - [clang][Interp][NFC] Fix a const-correctness warning
Timm Bäder via cfe-commits
cfe-commits at lists.llvm.org
Fri Jun 7 04:44:50 PDT 2024
Author: Timm Bäder
Date: 2024-06-07T13:29:23+02:00
New Revision: 9eb8a130c5d708dbabe824113add072436ae9997
URL: https://github.com/llvm/llvm-project/commit/9eb8a130c5d708dbabe824113add072436ae9997
DIFF: https://github.com/llvm/llvm-project/commit/9eb8a130c5d708dbabe824113add072436ae9997.diff
LOG: [clang][Interp][NFC] Fix a const-correctness warning
Added:
Modified:
clang/lib/AST/Interp/MemberPointer.h
Removed:
################################################################################
diff --git a/clang/lib/AST/Interp/MemberPointer.h b/clang/lib/AST/Interp/MemberPointer.h
index 5c61f6a439574..f56dc530431e4 100644
--- a/clang/lib/AST/Interp/MemberPointer.h
+++ b/clang/lib/AST/Interp/MemberPointer.h
@@ -86,7 +86,7 @@ class MemberPointer final {
bool hasBase() const { return !Base.isZero(); }
void print(llvm::raw_ostream &OS) const {
- OS << "MemberPtr(" << Base << " " << (void *)Dcl << " + " << PtrOffset
+ OS << "MemberPtr(" << Base << " " << (const void *)Dcl << " + " << PtrOffset
<< ")";
}
More information about the cfe-commits
mailing list