Skip to content

Commit cbe78e0

Browse files
eecksteingottesmm
authored andcommitted
fix build error in LLVMMergeFunctions caused by upstream llvm changes
(cherry picked from commit 610996a)
1 parent bddea63 commit cbe78e0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/LLVMPasses/LLVMMergeFunctions.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2031,7 +2031,7 @@ void SwiftMergeFunctions::removeEquivalenceClassFromTree(FunctionEntry *FE) {
20312031
// Helper for writeThunk,
20322032
// Selects proper bitcast operation,
20332033
// but a bit simpler then CastInst::getCastOpcode.
2034-
static Value *createCast(IRBuilder<false> &Builder, Value *V, Type *DestTy) {
2034+
static Value *createCast(IRBuilder<> &Builder, Value *V, Type *DestTy) {
20352035
Type *SrcTy = V->getType();
20362036
if (SrcTy->isStructTy()) {
20372037
assert(DestTy->isStructTy());
@@ -2066,7 +2066,7 @@ void SwiftMergeFunctions::writeThunk(Function *ToFunc, Function *Thunk,
20662066
Thunk->dropAllReferences();
20672067

20682068
BasicBlock *BB = BasicBlock::Create(Thunk->getContext(), "", Thunk);
2069-
IRBuilder<false> Builder(BB);
2069+
IRBuilder<> Builder(BB);
20702070

20712071
SmallVector<Value *, 16> Args;
20722072
unsigned ParamIdx = 0;
@@ -2137,7 +2137,7 @@ bool SwiftMergeFunctions::replaceDirectCallers(Function *Old, Function *New,
21372137

21382138
SmallVector<Type *, 8> OldParamTypes;
21392139
SmallVector<Value *, 16> NewArgs;
2140-
IRBuilder<false> Builder(CI);
2140+
IRBuilder<> Builder(CI);
21412141

21422142
FunctionType *NewFuncTy = New->getFunctionType();
21432143
unsigned ParamIdx = 0;

0 commit comments

Comments
 (0)