[llvm-commits] CVS: llvm/lib/CodeGen/MachineDebugInfo.cpp
Jim Laskey
jlaskey at apple.com
Wed Jan 3 05:46:36 PST 2007
Changes in directory llvm/lib/CodeGen:
MachineDebugInfo.cpp updated: 1.65 -> 1.66
---
Log message:
NULL names should pass validation.
---
Diffs of the changes: (+2 -1)
MachineDebugInfo.cpp | 3 ++-
1 files changed, 2 insertions(+), 1 deletion(-)
Index: llvm/lib/CodeGen/MachineDebugInfo.cpp
diff -u llvm/lib/CodeGen/MachineDebugInfo.cpp:1.65 llvm/lib/CodeGen/MachineDebugInfo.cpp:1.66
--- llvm/lib/CodeGen/MachineDebugInfo.cpp:1.65 Sat Dec 30 23:55:36 2006
+++ llvm/lib/CodeGen/MachineDebugInfo.cpp Wed Jan 3 07:46:20 2007
@@ -430,7 +430,8 @@
}
virtual void Apply(std::string &Field) {
Constant *C = CI->getOperand(I++);
- IsValid = IsValid && (!C || isStringValue(C));
+ IsValid = IsValid &&
+ (!C || isStringValue(C) || C->isNullValue());
}
virtual void Apply(DebugInfoDesc *&Field) {
// FIXME - Prepare the correct descriptor.
More information about the llvm-commits
mailing list