NULL names should pass validation.

llvm-svn: 32835
This commit is contained in:
Jim Laskey 2007-01-03 13:46:20 +00:00
parent 751314fab9
commit 7601f2f36e
1 changed files with 2 additions and 1 deletions

View File

@ -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.