!"i" is a valid MDString.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74881 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Devang Patel 2009-07-06 23:40:48 +00:00
parent 92c551103f
commit a41a5dc3b7

View File

@ -1010,7 +1010,6 @@ bool BitcodeReader::ParseConstants() {
break;
}
case bitc::CST_CODE_MDSTRING: {
if (Record.size() < 2) return Error("Invalid MDSTRING record");
unsigned MDStringLength = Record.size();
SmallString<8> String;
String.resize(MDStringLength);