kda updated this revision to Diff 399432. kda marked an inline comment as done. kda added a comment.
reduce nesting Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D117078/new/ https://reviews.llvm.org/D117078 Files: clang/lib/CodeGen/CGCall.cpp Index: clang/lib/CodeGen/CGCall.cpp =================================================================== --- clang/lib/CodeGen/CGCall.cpp +++ clang/lib/CodeGen/CGCall.cpp @@ -2377,9 +2377,9 @@ } // Decide whether the argument we're handling could be partially undef - if (CodeGenOpts.EnableNoundefAttrs) { - if (DetermineNoUndef(ParamType, getTypes(), DL, AI)) - Attrs.addAttribute(llvm::Attribute::NoUndef); + if (CodeGenOpts.EnableNoundefAttrs && + DetermineNoUndef(ParamType, getTypes(), DL, AI)) { + Attrs.addAttribute(llvm::Attribute::NoUndef); } // 'restrict' -> 'noalias' is done in EmitFunctionProlog when we
Index: clang/lib/CodeGen/CGCall.cpp =================================================================== --- clang/lib/CodeGen/CGCall.cpp +++ clang/lib/CodeGen/CGCall.cpp @@ -2377,9 +2377,9 @@ } // Decide whether the argument we're handling could be partially undef - if (CodeGenOpts.EnableNoundefAttrs) { - if (DetermineNoUndef(ParamType, getTypes(), DL, AI)) - Attrs.addAttribute(llvm::Attribute::NoUndef); + if (CodeGenOpts.EnableNoundefAttrs && + DetermineNoUndef(ParamType, getTypes(), DL, AI)) { + Attrs.addAttribute(llvm::Attribute::NoUndef); } // 'restrict' -> 'noalias' is done in EmitFunctionProlog when we
_______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits