This is an archive of the discontinued LLVM Phabricator instance.

[llvm-c][NFC] fix build warning for reinterpret_cast
Needs ReviewPublic

Authored by liaolucy on Jun 16 2022, 12:00 AM.

Details

Diff Detail

Event Timeline

liaolucy created this revision.Jun 16 2022, 12:00 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 16 2022, 12:00 AM
Herald added a subscriber: hiraditya. · View Herald Transcript
liaolucy requested review of this revision.Jun 16 2022, 12:00 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 16 2022, 12:00 AM

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),
      |                  ^