mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-20 03:23:01 +02:00
If VariableDIe is not created (may be because global was optimzed away) then do not try to use the variable die.
llvm-svn: 91077
This commit is contained in:
parent
02ce8cd8a6
commit
1202338fa5
@ -1632,6 +1632,8 @@ void DwarfDebug::constructGlobalVariableDIE(MDNode *N) {
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
DIE *VariableDie = createGlobalVariableDIE(DI_GV);
|
DIE *VariableDie = createGlobalVariableDIE(DI_GV);
|
||||||
|
if (!VariableDie)
|
||||||
|
return;
|
||||||
|
|
||||||
// Add to map.
|
// Add to map.
|
||||||
ModuleCU->insertDIE(N, VariableDie);
|
ModuleCU->insertDIE(N, VariableDie);
|
||||||
|
Loading…
Reference in New Issue
Block a user