[clang] Fix a -Wcast-qual GCC warning. NFC.

This fixes the following warning:

../tools/clang/lib/AST/Interp/Disasm.cpp: In member function ‘void clang::interp::Function::dump(llvm::raw_ostream&) const’:
../tools/clang/lib/AST/Interp/Disasm.cpp:43:25: warning: cast from type ‘const clang::interp::Function*’ to type ‘void*’ casts away qualifiers [-Wcast-qual]
   43 |     OS << " " << (void*)this << ":\n";
      |                         ^~~~
This commit is contained in:
Martin Storsjö 2022-10-28 16:10:17 +03:00
parent fe5b7d9406
commit 83b97b3b27

View File

@ -40,7 +40,7 @@ LLVM_DUMP_METHOD void Function::dump(llvm::raw_ostream &OS) const {
} else {
OS << F->getDeclName();
}
OS << " " << (void*)this << ":\n";
OS << " " << (const void*)this << ":\n";
} else {
OS << "<<expr>>\n";
}