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

Frank Schlimbach via llvm-commits llvm-commits at lists.llvm.org
Fri Aug 23 01:07:08 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:

changed to using C++ casts only

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


More information about the llvm-commits mailing list