[PATCH] D27163: Introduce -f[no-]strict-return flag that controls code generation for C++'s undefined behaviour return optimisation
Mehdi AMINI via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Dec 15 09:46:50 PST 2016
mehdi_amini accepted this revision.
mehdi_amini added a comment.
This revision is now accepted and ready to land.
LGTM.
================
Comment at: lib/CodeGen/CodeGenFunction.cpp:1086
+ }
+ return true;
+}
----------------
Just a nit: reversing the if condition allows early exit.
Repository:
rL LLVM
https://reviews.llvm.org/D27163
More information about the cfe-commits
mailing list