[PATCH] D13374: [WinEH] Fix cleanup state numbering
Reid Kleckner via llvm-commits
llvm-commits at lists.llvm.org
Tue Oct 6 13:25:30 PDT 2015
rnk added a comment.
I held off on doing this because Clang doesn't emit `cleanupendpad` for C++ destructors yet. This isn't usually problem because destructors are noexcept by default in C++11, so the `cleanupendpad` is unreachable *unless* someone explicitly declares a `noexcept(false)` destructor:
struct D {
~D() noexcept(false) { throw 42; }
};
int main() {
D o;
throw 42;
}
Let me deal with that and I'll get back to this.
http://reviews.llvm.org/D13374
More information about the llvm-commits
mailing list