On Mon, Apr 2, 2012 at 4:57 PM, Paul J. Lucas <paul at lucasmail.org>
wrote:> Using the LLVM demo <http://llvm.org/demo/> with this code:
>
>> int G;
>>
>> struct E {
>> };
>>
>> struct S {
>> ~S();
>> void throw_it();
>> };
>>
>> S::~S() {
>> ++G;
>> }
>>
>> void S::throw_it() {
>> throw E();
>> }
>>
>> int main() {
>> S s;
>> s.throw_it();
>> }
>
> and selecting C++ as the source language an "LLVM C++ API code"
as the target gets me:
>
>> LLVM ERROR: Invalid instruction
>
> Why?
Some exception-handling-related updates to the code that generates the
C++ output didn't make it into the 3.0 release.
-Eli