mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-19 19:12:56 +02:00
[CodeGen] Fix regression from D83655
Arm EHABI has a null LSDASection as it does its own thing, so we should continue to return null in that case rather than try and cast it.
This commit is contained in:
parent
7b1a5513ca
commit
d022c319e8
@ -837,7 +837,8 @@ MCSection *
|
||||
TargetLoweringObjectFileELF::getSectionForLSDA(const Function &F,
|
||||
const TargetMachine &TM) const {
|
||||
// If neither COMDAT nor function sections, use the monolithic LSDA section.
|
||||
if (!F.hasComdat() && !TM.getFunctionSections())
|
||||
// Re-use this path if LSDASection is null as in the Arm EHABI.
|
||||
if (!LSDASection || (!F.hasComdat() && !TM.getFunctionSections()))
|
||||
return LSDASection;
|
||||
|
||||
const auto *LSDA = cast<MCSectionELF>(LSDASection);
|
||||
|
Loading…
Reference in New Issue
Block a user