llvm-project/llvm/lib/ExecutionEngine
Lang Hames a76209c265 [ORC] Fix handling of casts in llvm.global_ctors.
Removes a bogus dyn_cast_or_null that was breaking cast-expression handling when
parsing llvm.global_ctors.

The intent of this code was to identify Functions nested within cast
expressions, but the offending dyn_cast_or_null was actually blocking that:
Since a function is not a cast expression, we would set FuncC to null and break
the loop without finding the Function. The cast was not necessary either:
Functions are already Constants, and we didn't need to do anything
ConstantExpr-specific with FuncC, so we could just drop the cast.

Thanks to Jonas Hahnfeld for tracking this down.

http://llvm.org/PR54797
2022-04-07 17:06:38 -07:00
..
IntelJITEvents New tag for ittapi - fix an error related to cross-compiling ITTAPI in LLVM with mingw 2021-05-14 08:18:49 +03:00
Interpreter [llvm] Use = default (NFC) 2022-02-06 22:18:35 -08:00
JITLink [JITLink][MachO] Fix alignment bug in the c-string literal section graphifier. 2022-04-05 17:38:54 -07:00
MCJIT [llvm] Use = default (NFC) 2022-02-06 22:18:35 -08:00
OProfileJIT llvmbuildectomy - replace llvm-build by plain cmake 2020-11-13 10:35:24 +01:00
Orc [ORC] Fix handling of casts in llvm.global_ctors. 2022-04-07 17:06:38 -07:00
PerfJITEvents [perf] Fix a data race in the PerfJITEventListener 2021-06-29 08:30:31 -07:00
RuntimeDyld Cleanup LLVMObject headers 2022-02-10 21:13:44 +01:00
CMakeLists.txt [lli] Add JITLink in-process debug support 2021-03-02 15:07:36 +01:00
ExecutionEngine.cpp [llvm] Use range-based for loops (NFC) 2021-11-28 18:14:49 -08:00
ExecutionEngineBindings.cpp [NFC] Cleanup more AttributeList::addAttribute() 2021-08-17 21:05:41 -07:00
GDBRegistrationListener.cpp Cleanup LLVMObject headers 2022-02-10 21:13:44 +01:00
SectionMemoryManager.cpp [llvm] Use = default (NFC) 2022-02-06 22:18:35 -08:00
TargetSelect.cpp Move TargetRegistry.(h|cpp) from Support to MC 2021-10-08 14:51:48 -07:00