[llvm] r352795 - Fix compilation error with GCC after r352791.

James Y Knight via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 31 13:21:58 PST 2019


Author: jyknight
Date: Thu Jan 31 13:21:57 2019
New Revision: 352795

URL: http://llvm.org/viewvc/llvm-project?rev=352795&view=rev
Log:
Fix compilation error with GCC after r352791.

Modified:
    llvm/trunk/include/llvm/IR/DerivedTypes.h

Modified: llvm/trunk/include/llvm/IR/DerivedTypes.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/IR/DerivedTypes.h?rev=352795&r1=352794&r2=352795&view=diff
==============================================================================
--- llvm/trunk/include/llvm/IR/DerivedTypes.h (original)
+++ llvm/trunk/include/llvm/IR/DerivedTypes.h Thu Jan 31 13:21:57 2019
@@ -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) {}
 




More information about the llvm-commits mailing list