Displaying 1 result from an estimated 1 matches for "xcatchingx_char".
2012 Jan 10
2
[LLVMdev] llc -march=cpp is broken?
When I run the following example, I get this error:
LLVM ERROR: Invalid instruction
Replacing C++ with trivial hello world makes it work.
rev.147747
Yuri
--- example (please save as .sh file) ---
#!/bin/sh
cat >f.C <<_END_
extern void xthrowingx();
extern void xcatchingx_char(char c);
extern void xcatchingx_int(int i);
extern void xcatchingx_all();
void f() {
try {
xthrowingx();
} catch (char c) {
xcatchingx_char(c);
} catch (int i) {
xcatchingx_int(i);
} catch (...) {
xcatchingx_all();
}
}
_END_
clang++ -emit-llvm -c f.C -o f.bc
ll...