[clang] 2e2be3d - Correct the nomerge attribute documentation

Aaron Ballman via cfe-commits cfe-commits at lists.llvm.org
Mon Nov 2 09:50:42 PST 2020


Author: Aaron Ballman
Date: 2020-11-02T12:49:40-05:00
New Revision: 2e2be3d964fb8f5a70faff1edbca4598bbb6ea94

URL: https://github.com/llvm/llvm-project/commit/2e2be3d964fb8f5a70faff1edbca4598bbb6ea94
DIFF: https://github.com/llvm/llvm-project/commit/2e2be3d964fb8f5a70faff1edbca4598bbb6ea94.diff

LOG: Correct the nomerge attribute documentation

The nomerge attribute is a statement attribute not a function attribute.

Added: 
    

Modified: 
    clang/include/clang/Basic/AttrDocs.td

Removed: 
    


################################################################################
diff  --git a/clang/include/clang/Basic/AttrDocs.td b/clang/include/clang/Basic/AttrDocs.td
index 238b0752a1a2..a2f7b7a5bc1f 100644
--- a/clang/include/clang/Basic/AttrDocs.td
+++ b/clang/include/clang/Basic/AttrDocs.td
@@ -377,7 +377,7 @@ that appears to be capable of returning to its caller.
 }
 
 def NoMergeDocs : Documentation {
-  let Category = DocCatFunction;
+  let Category = DocCatStmt;
   let Content = [{
 If a statement is marked ``nomerge`` and contains call expressions, those call
 expressions inside the statement will not be merged during optimization. This 


        


More information about the cfe-commits mailing list