[Mlir-commits] [llvm] [mlir] eliminating g++ warnings (PR #105520)

David Blaikie llvmlistbot at llvm.org
Wed Aug 21 10:27:56 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);
----------------
dwblaikie wrote:

What warning or error is being worked around here?

https://github.com/llvm/llvm-project/pull/105520


More information about the Mlir-commits mailing list