[all-commits] [llvm/llvm-project] 83b97b: [clang] Fix a -Wcast-qual GCC warning. NFC.
Martin Storsjö via All-commits
all-commits at lists.llvm.org
Fri Oct 28 06:12:02 PDT 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 83b97b3b277281c3b90d245c7816addccc756158
https://github.com/llvm/llvm-project/commit/83b97b3b277281c3b90d245c7816addccc756158
Author: Martin Storsjö <martin at martin.st>
Date: 2022-10-28 (Fri, 28 Oct 2022)
Changed paths:
M clang/lib/AST/Interp/Disasm.cpp
Log Message:
-----------
[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";
| ^~~~
More information about the All-commits
mailing list