aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/RuntimeCheck.cc
diff options
context:
space:
mode:
Diffstat (limited to 'lib/CodeGen/RuntimeCheck.cc')
-rw-r--r--lib/CodeGen/RuntimeCheck.cc5
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/CodeGen/RuntimeCheck.cc b/lib/CodeGen/RuntimeCheck.cc
index 4cee16f..e15c10b 100644
--- a/lib/CodeGen/RuntimeCheck.cc
+++ b/lib/CodeGen/RuntimeCheck.cc
@@ -77,10 +77,7 @@ void RuntimeCheck::emitCheck(Value *Condition, Value *Msg, ArrayRef<Value *> Fmt
Builder.CreateCondBr(Condition, FailBB, ContBB);
Builder.SetInsertPoint(FailBB);
- std::vector<Value*> PrintArgs;
- PrintArgs.push_back(Msg);
- PrintArgs.insert(PrintArgs.end(), FmtArgs.begin(), FmtArgs.end());
- emitStderr(Msg, ArrayRef<Value *>(PrintArgs).drop_front());
+ emitStderr(Msg, FmtArgs);
Exceptions.emitThrow();