Skip to content

Commit

Permalink
Fix macos build (#183)
Browse files Browse the repository at this point in the history
  • Loading branch information
wsmoses committed May 17, 2021
1 parent d95e377 commit 1a7445e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion enzyme/Enzyme/FunctionUtils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1574,7 +1574,7 @@ void CoaleseTrivialMallocs(Function &F, DominatorTree &DT) {
ConstantInt::get(Size->getType(), 15)),
ConstantInt::get(Size->getType(), 1));
z.second->eraseFromParent();
IRBuilder B2(z.first);
IRBuilder<> B2(z.first);
z.first->replaceAllUsesWith(B2.CreateInBoundsGEP(First, Size));
Size = B.CreateAdd(Size, z.first->getArgOperand(0));
z.first->eraseFromParent();
Expand Down

0 comments on commit 1a7445e

Please sign in to comment.