diff options
author | Jim Laskey <jlaskey@mac.com> | 2007-01-03 13:46:20 +0000 |
---|---|---|
committer | Jim Laskey <jlaskey@mac.com> | 2007-01-03 13:46:20 +0000 |
commit | 26a3687d53b7381dd2b6abdd2e4e38271c8da37e (patch) | |
tree | d5888badffa49dfc3e62241be77ebe11f23d223d /lib/CodeGen/MachineDebugInfo.cpp | |
parent | 1e3a5772d8efa207aa6f03888164ba57236ed705 (diff) |
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/MachineDebugInfo.cpp')
-rw-r--r-- | lib/CodeGen/MachineDebugInfo.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/CodeGen/MachineDebugInfo.cpp b/lib/CodeGen/MachineDebugInfo.cpp index 2708ceccfc..041a88cdca 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. |