forked from OSchip/llvm-project
Validate debug info values only if DwarfDebug is initialized.
llvm-svn: 62298
This commit is contained in:
parent
beac6f8b0c
commit
e067a7988c
|
@ -4272,7 +4272,7 @@ void DwarfWriter::EndFunction(MachineFunction *MF) {
|
|||
|
||||
/// ValidDebugInfo - Return true if V represents valid debug info value.
|
||||
bool DwarfWriter::ValidDebugInfo(Value *V) {
|
||||
return DD->ValidDebugInfo(V);
|
||||
return DD && DD->ValidDebugInfo(V);
|
||||
}
|
||||
|
||||
/// RecordSourceLine - Records location information and associates it with a
|
||||
|
|
Loading…
Reference in New Issue