[PATCH] D38479: Make -mgeneral-regs-only more like GCC's
Eli Friedman via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue May 21 12:23:28 PDT 2019
efriedma added inline comments.
================
Comment at: clang/lib/Sema/SemaExprCXX.cpp:7951
+ // they don't have to write out memcpy() for simple cases. For that reason,
+ // it's very limited in what it will detect.
+ //
----------------
We don't always lower struct copies to memcpy(); I'm not sure this is safe.
================
Comment at: clang/lib/Sema/SemaExprCXX.cpp:8003
+ !isRValueOfIllegalType(E) &&
+ E->isConstantInitializer(S.getASTContext(), /*ForRef=*/false)) {
+ resetDiagnosticState(InitialState);
----------------
Just because we can constant-fold an expression, doesn't mean we will, especially at -O0.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D38479/new/
https://reviews.llvm.org/D38479
More information about the cfe-commits
mailing list