From 1a7445ed03f758a8fbeb669bda7b0cae7edb580e Mon Sep 17 00:00:00 2001 From: William Moses Date: Tue, 27 Apr 2021 17:07:50 -0400 Subject: [PATCH] Fix macos build (#183) --- enzyme/Enzyme/FunctionUtils.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/enzyme/Enzyme/FunctionUtils.cpp b/enzyme/Enzyme/FunctionUtils.cpp index 6b5b28a6d2f6..6ea44ea90c71 100644 --- a/enzyme/Enzyme/FunctionUtils.cpp +++ b/enzyme/Enzyme/FunctionUtils.cpp @@ -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();