Validate debug info values only if DwarfDebug is initialized.

llvm-svn: 62298
This commit is contained in:
Devang Patel 2009-01-16 02:15:14 +00:00
parent beac6f8b0c
commit e067a7988c
1 changed files with 1 additions and 1 deletions

View File

@ -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