Builder.GetInsertBlock() may return null sometimes. https://godbolt.org/z/n1Ph47jP1
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
LGTM
clang/test/CodeGen/windows-seh-EHa-CppCatchReturn.cpp | ||
---|---|---|
27 | If a scope never ends because there's an "unreachable", that's fine, I think. The scope never dynamically ends (unless an exception is thrown). The backend deals with the same sort of thing for other constructs with a "begin" and "end". For example, a cleanuppad might not have a matching cleanupret. |
clang/test/CodeGen/windows-seh-EHa-CppCatchReturn.cpp | ||
---|---|---|
27 | Thanks for the advice! |
If a scope never ends because there's an "unreachable", that's fine, I think. The scope never dynamically ends (unless an exception is thrown). The backend deals with the same sort of thing for other constructs with a "begin" and "end". For example, a cleanuppad might not have a matching cleanupret.