]> granicus.if.org Git - llvm/commitdiff
Fix compilation error with GCC after r352791.
authorJames Y Knight <jyknight@google.com>
Thu, 31 Jan 2019 21:21:57 +0000 (21:21 +0000)
committerJames Y Knight <jyknight@google.com>
Thu, 31 Jan 2019 21:21:57 +0000 (21:21 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@352795 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/IR/DerivedTypes.h

index ebd4d8ad776d0a1b625e93ccc71d005ccf3a0e7e..afea34d7d7aa17c7f69dcc55d194612bd592bb0b 100644 (file)
@@ -166,7 +166,7 @@ public:
   // Allow implicit conversion from types which have a getFunctionType member
   // (e.g. Function and InlineAsm).
   template <typename T,
-            typename U = std::enable_if<&T::getFunctionType != nullptr, void>>
+            typename U = std::enable_if<(&T::getFunctionType != nullptr), void>>
   FunctionCallee(T *Fn)
       : FnTy(Fn ? Fn->getFunctionType() : nullptr), Callee(Fn) {}