mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-02 22:04:55 +00:00
Win64Exception.cpp: Try to fix crash for x64 EH. "Per" might be null there.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@226077 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
7ec1829823
commit
635656e231
@ -106,7 +106,7 @@ void Win64Exception::endFunction(const MachineFunction *) {
|
||||
// Emit the tables appropriate to the personality function in use. If we
|
||||
// don't recognize the personality, assume it uses an Itanium-style LSDA.
|
||||
const Function *Per = MMI->getPersonality();
|
||||
if (Per->getName() == "__C_specific_handler")
|
||||
if (Per && Per->getName() == "__C_specific_handler")
|
||||
emitCSpecificHandlerTable();
|
||||
else
|
||||
emitExceptionTable();
|
||||
|
Loading…
Reference in New Issue
Block a user