[llvm-commits] [llvm] r138906 - /llvm/trunk/test/Other/2008-10-15-MissingSpace.ll

Duncan Sands baldrick at free.fr
Wed Nov 21 00:41:04 PST 2012


Hi Takumi, the problem here is that the two blocks have to
be different here: label %c unwind label %c
So to fix this, create a new block %d,

d:
   ret void

and change "label %c" to "label %d".

Ciao, Duncan.

On 21/11/12 09:34, NAKAMURA Takumi wrote:
> Ping toward the dark!
>
> ; RUN: llvm-as < %s | llvm-dis | not grep "void@"
>
> It emits possibly unexpected messages to stderr.
>
> bin/llvm-as: assembly parsed, but does not verify as correct!
> Block containing LandingPadInst must be jumped to only by the unwind
> edge of an invoke.
>    %exn = landingpad { i8*, i32 } personality i32 (...)* @__gxx_personality_v0
>            cleanup
> Broken module found, compilation terminated.
> Broken module found, compilation terminated.
> bin/llvm-dis: Bitcode stream must be at least 16 bytes in length
>
> 2011/9/1 Bill Wendling <isanbard at gmail.com>:
>> Author: void
>> Date: Wed Aug 31 16:44:24 2011
>> New Revision: 138906
>>
>> URL: http://llvm.org/viewvc/llvm-project?rev=138906&view=rev
>> Log:
>> Update to new EH scheme.
>>
>> Modified:
>>      llvm/trunk/test/Other/2008-10-15-MissingSpace.ll
>>
>> Modified: llvm/trunk/test/Other/2008-10-15-MissingSpace.ll
>> URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Other/2008-10-15-MissingSpace.ll?rev=138906&r1=138905&r2=138906&view=diff
>> ==============================================================================
>> --- llvm/trunk/test/Other/2008-10-15-MissingSpace.ll (original)
>> +++ llvm/trunk/test/Other/2008-10-15-MissingSpace.ll Wed Aug 31 16:44:24 2011
>> @@ -3,5 +3,10 @@
>>   declare void @g()
>>   define void @f() {
>>     invoke void @g() to label %c unwind label %c
>> -  c: ret void
>> +c:
>> +  %exn = landingpad {i8*, i32} personality i32 (...)* @__gxx_personality_v0
>> +            cleanup
>> +  ret void
>>   }
>> +
>> +declare i32 @__gxx_personality_v0(...)
>>
>>
>> _______________________________________________
>> 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