Displaying 1 result from an estimated 1 matches for "throw_it".
Did you mean:
throw_2
2012 Apr 02
1
[LLVMdev] Demo invalid instruction
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 ins...