[PATCH] D27163: Introduce -f[no-]strict-return flag that controls code generation for C++'s undefined behaviour return optimisation
Alex Lorenz via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Dec 15 07:56:47 PST 2016
arphaman updated this revision to Diff 81584.
arphaman marked 3 inline comments as done.
arphaman added a comment.
The updated patch removes the dependency on the "-Wreturn-type" diagnostic and verifies that functions that return a type with a non-trivial default constructor are always optimized.
Repository:
rL LLVM
https://reviews.llvm.org/D27163
Files:
include/clang/Driver/Options.td
include/clang/Frontend/CodeGenOptions.def
lib/CodeGen/CodeGenFunction.cpp
lib/Driver/Tools.cpp
lib/Frontend/CompilerInvocation.cpp
test/CodeGenCXX/return.cpp
test/CodeGenObjCXX/return.mm
test/Driver/clang_f_opts.c
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D27163.81584.patch
Type: text/x-patch
Size: 10260 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20161215/ab02d0ba/attachment-0001.bin>
More information about the cfe-commits
mailing list