[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:01:00 PDT 2022


liaolucy added a comment.

warning:

  llvm-project/llvm/lib/IR/Core.cpp:90:18: warning: cast between incompatible function types from ‘LLVMDiagnosticHandler’ {aka ‘void (*)(LLVMOpaqueDiagnosticInfo*, void*)’} to ‘llvm::DiagnosticHandler::DiagnosticHandlerTy’ {aka ‘void (*)(const llvm::DiagnosticInfo&, void*)’} [-Wcast-function-type]
     90 |           Handler),
        |                  ^


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D127944/new/

https://reviews.llvm.org/D127944



More information about the llvm-commits mailing list