1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-19 19:12:56 +02:00

NULL names should pass validation.

llvm-svn: 32835
This commit is contained in:
Jim Laskey 2007-01-03 13:46:20 +00:00
parent c0dfc41747
commit 4308b27af2

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.