mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-09 11:25:55 +00:00
Validate debug info values only if DwarfDebug is initialized.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@62298 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -4272,7 +4272,7 @@ void DwarfWriter::EndFunction(MachineFunction *MF) {
|
|||||||
|
|
||||||
/// ValidDebugInfo - Return true if V represents valid debug info value.
|
/// ValidDebugInfo - Return true if V represents valid debug info value.
|
||||||
bool DwarfWriter::ValidDebugInfo(Value *V) {
|
bool DwarfWriter::ValidDebugInfo(Value *V) {
|
||||||
return DD->ValidDebugInfo(V);
|
return DD && DD->ValidDebugInfo(V);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// RecordSourceLine - Records location information and associates it with a
|
/// RecordSourceLine - Records location information and associates it with a
|
||||||
|
Reference in New Issue
Block a user