summaryrefslogtreecommitdiffstats
path: root/lib/Lex
diff options
context:
space:
mode:
authorFaisal Vali <faisalv@yahoo.com>2017-09-28 02:00:40 +0000
committerFaisal Vali <faisalv@yahoo.com>2017-09-28 02:00:40 +0000
commit29487927c0f5d8cd6b23978a0216b17041161cc5 (patch)
tree52a432647037e130229adec7598b4289d082c0f5 /lib/Lex
parent35b54a9ed7493be94a126f1152caf86ff388d36a (diff)
[NFC] Don't use C++17 standard lib variable template helper traits, instead use ::value.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@314373 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Lex')
-rw-r--r--lib/Lex/MacroArgs.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Lex/MacroArgs.cpp b/lib/Lex/MacroArgs.cpp
index c816fee085..b96b1a8995 100644
--- a/lib/Lex/MacroArgs.cpp
+++ b/lib/Lex/MacroArgs.cpp
@@ -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);