summaryrefslogtreecommitdiff
path: root/lib/CodeGen/CGExprScalar.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/CodeGen/CGExprScalar.cpp')
-rw-r--r--lib/CodeGen/CGExprScalar.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/CodeGen/CGExprScalar.cpp b/lib/CodeGen/CGExprScalar.cpp
index 6ddcc2b592..d8c7ed8c35 100644
--- a/lib/CodeGen/CGExprScalar.cpp
+++ b/lib/CodeGen/CGExprScalar.cpp
@@ -189,7 +189,8 @@ llvm::Value *CodeGenFunction::EmitScalarBinaryExpr(BinaryExpr::Operator Op,
auto Func = GetIntrinsicFunction(Intrinsic,
LHS->getType(),
RHS->getType());
- Result = Builder.CreateCall2(Func, LHS, RHS);
+ llvm::Value *PowerArgs[] = {LHS, RHS};
+ Result = Builder.CreateCall(Func, PowerArgs);
break;
}