From: Jim Laskey Date: Wed, 3 Jan 2007 13:46:20 +0000 (+0000) Subject: NULL names should pass validation. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=26a3687d53b7381dd2b6abdd2e4e38271c8da37e;p=oota-llvm.git NULL names should pass validation. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32835 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/MachineDebugInfo.cpp b/lib/CodeGen/MachineDebugInfo.cpp index 2708ceccfc0..041a88cdca5 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.