[clang] Fix a -Wcast-qual GCC warning. NFC.
authorMartin Storsjö <martin@martin.st>
Fri, 28 Oct 2022 13:10:17 +0000 (16:10 +0300)
committerMartin Storsjö <martin@martin.st>
Fri, 28 Oct 2022 13:11:34 +0000 (16:11 +0300)
commit83b97b3b277281c3b90d245c7816addccc756158
tree7ebd64213127c5bf3aa4631d5d3f01c55d5100ba
parentfe5b7d9406b53ef28ad3a17b4c6971fbe01b4913
[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";
      |                         ^~~~
clang/lib/AST/Interp/Disasm.cpp