[PATCH] D79121: Add nomerge function attribute to clang
Zequan Wu via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon May 4 17:46:18 PDT 2020
zequanwu added inline comments.
================
Comment at: clang/lib/CodeGen/CGStmt.cpp:611
void CodeGenFunction::EmitAttributedStmt(const AttributedStmt &S) {
+ for (const auto *A: S.getAttrs())
+ if (A->getKind() == attr::NoMerge) {
----------------
rnk wrote:
> Can we use S.hasAttr, or does that not exist for statements?
Not exist for statements.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D79121/new/
https://reviews.llvm.org/D79121
More information about the cfe-commits
mailing list