[llvm-commits] CVS: llvm/lib/Bitcode/Reader/BitcodeReader.cpp
Reid Spencer
rspencer at reidspencer.com
Thu May 3 19:32:10 PDT 2007
On Thu, 3 May 2007 19:28:14 -0700
Chris Lattner <clattner at apple.com> wrote:
>>
>> Allow this to compile with gcc 4.0.X
>
>Doh, thanks Reid, FWIW, that bug is fixed in apple gcc 4.2. Now they
>just need to finish it :)
Yeah, plight of the "compiler poor" like me :)
>
>-Chris
>
>>
>> ---
>> Diffs of the changes: (+4 -2)
>>
>> BitcodeReader.cpp | 6 ++++--
>> 1 files changed, 4 insertions(+), 2 deletions(-)
>>
>>
>> Index: llvm/lib/Bitcode/Reader/BitcodeReader.cpp
>> diff -u llvm/lib/Bitcode/Reader/BitcodeReader.cpp:1.30 llvm/lib/
>> Bitcode/Reader/BitcodeReader.cpp:1.31
>> --- llvm/lib/Bitcode/Reader/BitcodeReader.cpp:1.30 Thu May 3
>> 17:34:03 2007
>> +++ llvm/lib/Bitcode/Reader/BitcodeReader.cpp Thu May 3 20:43:33 2007
>> @@ -400,7 +400,7 @@
>> switch (Stream.ReadRecord(Code, Record)) {
>> default: // Default behavior: unknown type.
>> break;
>> - case bitc::VST_CODE_ENTRY: // VST_ENTRY: [valueid, namelen,
>> namechar x N]
>> + case bitc::VST_CODE_ENTRY: { // VST_ENTRY: [valueid, namelen,
>> namechar x N]
>> if (ConvertToString(Record, 1, ValueName))
>> return Error("Invalid TST_ENTRY record");
>> unsigned ValueID = Record[0];
>> @@ -411,7 +411,8 @@
>> V->setName(&ValueName[0], ValueName.size());
>> ValueName.clear();
>> break;
>> - case bitc::VST_CODE_BBENTRY:
>> + }
>> + case bitc::VST_CODE_BBENTRY: {
>> if (ConvertToString(Record, 1, ValueName))
>> return Error("Invalid VST_BBENTRY record");
>> BasicBlock *BB = getBasicBlock(Record[0]);
>> @@ -422,6 +423,7 @@
>> ValueName.clear();
>> break;
>> }
>> + }
>> }
>> }
>>
>>
>>
>>
>> _______________________________________________
>> llvm-commits mailing list
>> llvm-commits at cs.uiuc.edu
>> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
>
>_______________________________________________
>llvm-commits mailing list
>llvm-commits at cs.uiuc.edu
>http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
More information about the llvm-commits
mailing list