aboutsummaryrefslogtreecommitdiffstats
path: root/lib/CodeGen
diff options
context:
space:
mode:
authorJim Laskey <jlaskey@mac.com>2007-01-03 13:46:20 +0000
committerJim Laskey <jlaskey@mac.com>2007-01-03 13:46:20 +0000
commit26a3687d53b7381dd2b6abdd2e4e38271c8da37e (patch)
treed5888badffa49dfc3e62241be77ebe11f23d223d /lib/CodeGen
parent1e3a5772d8efa207aa6f03888164ba57236ed705 (diff)
downloadexternal_llvm-26a3687d53b7381dd2b6abdd2e4e38271c8da37e.zip
external_llvm-26a3687d53b7381dd2b6abdd2e4e38271c8da37e.tar.gz
external_llvm-26a3687d53b7381dd2b6abdd2e4e38271c8da37e.tar.bz2
NULL names should pass validation.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32835 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen')
-rw-r--r--lib/CodeGen/MachineDebugInfo.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/CodeGen/MachineDebugInfo.cpp b/lib/CodeGen/MachineDebugInfo.cpp
index 2708cec..041a88c 100644
--- a/lib/CodeGen/MachineDebugInfo.cpp
+++ b/lib/CodeGen/MachineDebugInfo.cpp
@@ -430,7 +430,8 @@ public:
}
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.