[clang] 9ced729 - Repair a confusing standards reference; NFC

Aaron Ballman via cfe-commits cfe-commits at lists.llvm.org
Mon Oct 10 11:10:51 PDT 2022


Author: Aaron Ballman
Date: 2022-10-10T14:10:39-04:00
New Revision: 9ced729c2c77b19932966891566e4e2f01112f91

URL: https://github.com/llvm/llvm-project/commit/9ced729c2c77b19932966891566e4e2f01112f91
DIFF: https://github.com/llvm/llvm-project/commit/9ced729c2c77b19932966891566e4e2f01112f91.diff

LOG: Repair a confusing standards reference; NFC

There is no 6.9 in C++11, the quote actually lives in
[intro.multithread] for that revision. However, the words moved in
C++17 to [intro.progress] so I added that information as well.

Added: 
    

Modified: 
    clang/lib/CodeGen/CodeGenFunction.h

Removed: 
    


################################################################################
diff  --git a/clang/lib/CodeGen/CodeGenFunction.h b/clang/lib/CodeGen/CodeGenFunction.h
index b906fd0d1c121..8921cb78de996 100644
--- a/clang/lib/CodeGen/CodeGenFunction.h
+++ b/clang/lib/CodeGen/CodeGenFunction.h
@@ -570,7 +570,7 @@ class CodeGenFunction : public CodeGenTypeCache {
       return false;
 
     // C++11 and later guarantees that a thread eventually will do one of the
-    // following (6.9.2.3.1 in C++11):
+    // following (C++11 [intro.multithread]p24 and C++17 [intro.progress]p1):
     // - terminate,
     //  - make a call to a library I/O function,
     //  - perform an access through a volatile glvalue, or


        


More information about the cfe-commits mailing list