[llvm] r336166 - [ADT] Switch another place to `llvm::is_trivially_move_constructible`.

Chandler Carruth via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 2 21:07:26 PDT 2018


Author: chandlerc
Date: Mon Jul  2 21:07:26 2018
New Revision: 336166

URL: http://llvm.org/viewvc/llvm-project?rev=336166&view=rev
Log:
[ADT] Switch another place to `llvm::is_trivially_move_constructible`.

I missed this the first time around, sorry.

Modified:
    llvm/trunk/include/llvm/ADT/FunctionExtras.h

Modified: llvm/trunk/include/llvm/ADT/FunctionExtras.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/ADT/FunctionExtras.h?rev=336166&r1=336165&r2=336166&view=diff
==============================================================================
--- llvm/trunk/include/llvm/ADT/FunctionExtras.h (original)
+++ llvm/trunk/include/llvm/ADT/FunctionExtras.h Mon Jul  2 21:07:26 2018
@@ -240,7 +240,7 @@ public:
     // FIXME: we should use constexpr if here and below to avoid instantiating
     // the non-trivial static objects when unnecessary. While the linker should
     // remove them, it is still wasteful.
-    if (std::is_trivially_move_constructible<CallableT>::value &&
+    if (llvm::is_trivially_move_constructible<CallableT>::value &&
         std::is_trivially_destructible<CallableT>::value) {
       CallbackAndInlineFlag = {&CallImpl<CallableT>, IsInlineStorage};
       return;




More information about the llvm-commits mailing list