[Mlir-commits] [llvm] [mlir] eliminating g++ warnings (PR #105520)
Frank Schlimbach
llvmlistbot at llvm.org
Thu Aug 22 00:48:50 PDT 2024
================
@@ -301,7 +301,7 @@ void mlirDebuggerAddFileLineColLocBreakpoint(const char *file, int line,
LLVM_ATTRIBUTE_NOINLINE void mlirDebuggerBreakpointHook() {
static LLVM_THREAD_LOCAL void *volatile sink;
- sink = (void *)&sink;
+ sink = (void *)const_cast<void **>(&sink);
----------------
fschlimb wrote:
casting away `volatile` discards qualifiers.
https://github.com/llvm/llvm-project/pull/105520
More information about the Mlir-commits
mailing list