forked from OSchip/llvm-project
[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:
parent
9c3bf91d6e
commit
58dde8cbc5
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue