diff options
| author | Devang Patel <dpatel@apple.com> | 2009-01-16 02:15:14 +0000 | 
|---|---|---|
| committer | Devang Patel <dpatel@apple.com> | 2009-01-16 02:15:14 +0000 | 
| commit | e067a7988c715b3bcf274319c3999701822ce272 (patch) | |
| tree | c8299b357eb21983722f597940ba74cd3e57a9f4 /llvm/lib/CodeGen | |
| parent | beac6f8b0c700248719c38b3d345b03a35e98a5b (diff) | |
| download | bcm5719-llvm-e067a7988c715b3bcf274319c3999701822ce272.tar.gz bcm5719-llvm-e067a7988c715b3bcf274319c3999701822ce272.zip | |
Validate debug info values only if DwarfDebug is initialized.
llvm-svn: 62298
Diffstat (limited to 'llvm/lib/CodeGen')
| -rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/DwarfWriter.cpp | 2 | 
1 files changed, 1 insertions, 1 deletions
| diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfWriter.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfWriter.cpp index 5e98618b243..ab66887d625 100644 --- a/llvm/lib/CodeGen/AsmPrinter/DwarfWriter.cpp +++ b/llvm/lib/CodeGen/AsmPrinter/DwarfWriter.cpp @@ -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  | 

