Displaying 1 result from an estimated 1 matches for "mythrowing1".
Did you mean:
mythrowing2
2010 Jul 12
2
[LLVMdev] clang/g++ frontend: can __cxa_end_catch throw?
...ses with 'invoke' with termination in case of exception. clang++
always just calls __cxa_end_catch with 'call' instruction.
Which way is correct?
--- c.cpp ---
#include <stdio.h>
#include <stdlib.h>
struct C {
C();
~C();
};
struct E {
E();
~E();
};
void mythrowing1();
void mythrowing2();
void mycatching(E *e);
void myfunc() {
try {
C c;
mythrowing1();
mythrowing2();
} catch (E *e) {
mycatching(e);
}
}
--- commands ---
/usr/local/llvm/2.7/bin/c++ -O3 -fexceptions -emit-llvm -S -o c-gcc.ll c.cpp
/usr/local/llvm/2.7/bin/clang++ -O3 -...