]> granicus.if.org Git - clang/commitdiff
NFC: clarify comment on lock-free macros
authorJF Bastien <jfb@google.com>
Thu, 24 Mar 2016 00:20:44 +0000 (00:20 +0000)
committerJF Bastien <jfb@google.com>
Thu, 24 Mar 2016 00:20:44 +0000 (00:20 +0000)
Used by both libstdc++ and libc++.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@264226 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Frontend/InitPreprocessor.cpp

index 403a5c9ed0fed99d5cfb96d19df12b4ba5adedbb..1741755723ad581b95a65ebe0b65bd9901f19594 100644 (file)
@@ -811,7 +811,7 @@ static void InitializePredefinedMacros(const TargetInfo &TI,
     // FIXME: This is target-dependent.
     Builder.defineMacro("__GCC_ATOMIC_TEST_AND_SET_TRUEVAL", "1");
 
-    // Used by libstdc++ to implement ATOMIC_<foo>_LOCK_FREE.
+    // Used by libc++ and libstdc++ to implement ATOMIC_<foo>_LOCK_FREE.
     unsigned InlineWidthBits = TI.getMaxAtomicInlineWidth();
 #define DEFINE_LOCK_FREE_MACRO(TYPE, Type) \
     Builder.defineMacro("__GCC_ATOMIC_" #TYPE "_LOCK_FREE", \