[PM] Speculative patch to try and fix MSVC's compilation.

No idea why r262004 triggered this, but just trying to fix somehow.

llvm-svn: 262006
This commit is contained in:
Chandler Carruth 2016-02-26 12:17:54 +00:00
parent 9c3bf91d6e
commit 58dde8cbc5
1 changed files with 3 additions and 1 deletions

View File

@ -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(LoopPassManager &FPM,
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"