[llvm] r262006 - [PM] Speculative patch to try and fix MSVC's compilation.
Chandler Carruth via llvm-commits
llvm-commits at lists.llvm.org
Fri Feb 26 04:17:54 PST 2016
Author: chandlerc
Date: Fri Feb 26 06:17:54 2016
New Revision: 262006
URL: http://llvm.org/viewvc/llvm-project?rev=262006&view=rev
Log:
[PM] Speculative patch to try and fix MSVC's compilation.
No idea why r262004 triggered this, but just trying to fix somehow.
Modified:
llvm/trunk/lib/Passes/PassBuilder.cpp
Modified: llvm/trunk/lib/Passes/PassBuilder.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Passes/PassBuilder.cpp?rev=262006&r1=262005&r2=262006&view=diff
==============================================================================
--- llvm/trunk/lib/Passes/PassBuilder.cpp (original)
+++ llvm/trunk/lib/Passes/PassBuilder.cpp Fri Feb 26 06:17:54 2016
@@ -49,6 +49,7 @@
#include "llvm/Transforms/Scalar/LowerExpectIntrinsic.h"
#include "llvm/Transforms/Scalar/SROA.h"
#include "llvm/Transforms/Scalar/SimplifyCFG.h"
+#include <type_traits>
using namespace llvm;
@@ -261,7 +262,8 @@ bool PassBuilder::parseLoopPassName(Loop
bool PassBuilder::parseAAPassName(AAManager &AA, StringRef Name) {
#define FUNCTION_ALIAS_ANALYSIS(NAME, CREATE_PASS) \
if (Name == NAME) { \
- AA.registerFunctionAnalysis<decltype(CREATE_PASS)>(); \
+ AA.registerFunctionAnalysis< \
+ std::remove_reference<decltype(CREATE_PASS)>::type>(); \
return true; \
}
#include "PassRegistry.def"
More information about the llvm-commits
mailing list