[llvm-bugs] [Bug 39987] New: try-catch optimization
via llvm-bugs
llvm-bugs at lists.llvm.org
Wed Dec 12 21:45:55 PST 2018
https://bugs.llvm.org/show_bug.cgi?id=39987
Bug ID: 39987
Summary: try-catch optimization
Product: libraries
Version: trunk
Hardware: PC
OS: All
Status: NEW
Severity: enhancement
Priority: P
Component: Scalar Optimizations
Assignee: unassignedbugs at nondot.org
Reporter: trass3r at gmail.com
CC: llvm-bugs at lists.llvm.org
https://godbolt.org/z/5ScorA
int shouldBecomeReturn0()
{
try {
throw 0;
} catch (int ex) {
return ex;
}
return 1;
}
$ clang -std=c++17 -O3 -fexceptions
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20181213/f49b6072/attachment-0001.html>
More information about the llvm-bugs
mailing list