]> granicus.if.org Git - clang/commitdiff
[NFC] Don't use C++17 standard lib variable template helper traits, instead use ...
authorFaisal Vali <faisalv@yahoo.com>
Thu, 28 Sep 2017 02:00:40 +0000 (02:00 +0000)
committerFaisal Vali <faisalv@yahoo.com>
Thu, 28 Sep 2017 02:00:40 +0000 (02:00 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@314373 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Lex/MacroArgs.cpp

index c816fee085d65900ac2c02657c8c8ec8ca716c4e..b96b1a8995fd2f31940c006c98a53424b40db015 100644 (file)
@@ -62,7 +62,7 @@ MacroArgs *MacroArgs::create(const MacroInfo *MI,
 
   // Copy the actual unexpanded tokens to immediately after the result ptr.
   if (!UnexpArgTokens.empty()) {
-    static_assert(std::is_trivially_copyable_v<Token>,
+    static_assert(std::is_trivially_copyable<Token>::value,
                   "assume trivial copyability if copying into the "
                   "uninitialized array (as opposed to reusing a cached "
                   "MacroArgs)");
@@ -96,7 +96,7 @@ MacroArgs *MacroArgs::deallocate() {
   // Run the dtor to deallocate the vectors.
   this->~MacroArgs();
   // Release the memory for the object.
-  static_assert(std::is_trivially_destructible_v<Token>,
+  static_assert(std::is_trivially_destructible<Token>::value,
                 "assume trivially destructible and forego destructors");
   free(this);