[PATCH] D124496: [Clang][Attr] clanf-format update

krishna chaitanya sankisa via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Apr 26 19:04:46 PDT 2022


skc7 created this revision.
Herald added a project: All.
skc7 requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.

Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D124496

Files:
  clang/lib/CodeGen/CGCall.cpp


Index: clang/lib/CodeGen/CGCall.cpp
===================================================================
--- clang/lib/CodeGen/CGCall.cpp
+++ clang/lib/CodeGen/CGCall.cpp
@@ -2432,7 +2432,8 @@
     // Decide whether the argument we're handling could be partially undef
     if (CodeGenOpts.EnableNoundefAttrs &&
         DetermineNoUndef(ParamType, getTypes(), DL, AI)) {
-      if(!FuncAttrs.contains(llvm::Attribute::Convergent))
+      // Skip adding noundef attribute to arguments when function has convergent attribute.
+      if (!FuncAttrs.contains(llvm::Attribute::Convergent))
         Attrs.addAttribute(llvm::Attribute::NoUndef);
     }
 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D124496.425392.patch
Type: text/x-patch
Size: 649 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20220427/119343d1/attachment.bin>


More information about the cfe-commits mailing list