Demo invalid instruction

Using the LLVM demo <http://llvm.org/demo/&gt; 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?

- Paul

Some exception-handling-related updates to the code that generates the
C++ output didn't make it into the 3.0 release.

-Eli