https://bugs.llvm.org/show_bug.cgi?id=42897
Tim Northover <[email protected]> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |INVALID
CC| |[email protected]
--- Comment #3 from Tim Northover <[email protected]> ---
Undefined behaviour like this frequently results in unexpected outcomes.
If you really want less aggressive optimizations in this case then there's a
-fno-strict-return option that will help, though it doesn't cover all cases for
some pretty good reasons (see https://reviews.llvm.org/D27163).
But fixing warnings is probably the best plan.
--
You are receiving this mail because:
You are on the CC list for the bug._______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs