mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-11-23 22:00:10 +00:00
[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:
parent
fe5b7d9406
commit
83b97b3b27
@ -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";
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user