[PATCH] D127944: [llvm-c][NFC] fix build warning for reinterpret_cast
    Liao Chunyu via Phabricator via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Thu Jun 16 00:00:29 PDT 2022
    
    
  
liaolucy created this revision.
liaolucy added reviewers: mehdi_amini, resistor.
Herald added a subscriber: hiraditya.
Herald added a project: All.
liaolucy requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
Repository:
  rG LLVM Github Monorepo
https://reviews.llvm.org/D127944
Files:
  llvm/lib/IR/Core.cpp
Index: llvm/lib/IR/Core.cpp
===================================================================
--- llvm/lib/IR/Core.cpp
+++ llvm/lib/IR/Core.cpp
@@ -86,7 +86,7 @@
                                      LLVMDiagnosticHandler Handler,
                                      void *DiagnosticContext) {
   unwrap(C)->setDiagnosticHandlerCallBack(
-      LLVM_EXTENSION reinterpret_cast<DiagnosticHandler::DiagnosticHandlerTy>(
+      LLVM_EXTENSION reinterpret_cast<DiagnosticHandler::DiagnosticHandlerTy &>(
           Handler),
       DiagnosticContext);
 }
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D127944.437458.patch
Type: text/x-patch
Size: 555 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220616/9617dc70/attachment.bin>
    
    
More information about the llvm-commits
mailing list