[clang] 687e7d3 - [NFC] Tweak a comment about the lock-free builtins

Luís Marques via cfe-commits cfe-commits at lists.llvm.org
Mon Aug 17 05:45:16 PDT 2020


Author: Luís Marques
Date: 2020-08-17T13:43:53+01:00
New Revision: 687e7d34253b283945bdf9892aa58fd167f9913d

URL: https://github.com/llvm/llvm-project/commit/687e7d34253b283945bdf9892aa58fd167f9913d
DIFF: https://github.com/llvm/llvm-project/commit/687e7d34253b283945bdf9892aa58fd167f9913d.diff

LOG: [NFC] Tweak a comment about the lock-free builtins

Added: 
    

Modified: 
    clang/lib/AST/ExprConstant.cpp

Removed: 
    


################################################################################
diff  --git a/clang/lib/AST/ExprConstant.cpp b/clang/lib/AST/ExprConstant.cpp
index 448a683c9088..760e5621e0ef 100644
--- a/clang/lib/AST/ExprConstant.cpp
+++ b/clang/lib/AST/ExprConstant.cpp
@@ -11519,8 +11519,8 @@ bool IntExprEvaluator::VisitBuiltinCallExpr(const CallExpr *E,
       return false;
 
     // For __atomic_is_lock_free(sizeof(_Atomic(T))), if the size is a power
-    // of two less than the maximum inline atomic width, we know it is
-    // lock-free.  If the size isn't a power of two, or greater than the
+    // of two less than or equal to the maximum inline atomic width, we know it
+    // is lock-free.  If the size isn't a power of two, or greater than the
     // maximum alignment where we promote atomics, we know it is not lock-free
     // (at least not in the sense of atomic_is_lock_free).  Otherwise,
     // the answer can only be determined at runtime; for example, 16-byte


        


More information about the cfe-commits mailing list