summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-04-21 22:43:20 +0000
committerChris Lattner <sabre@nondot.org>2003-04-21 22:43:20 +0000
commit1610666ea55c2938c9f858a5c0fec3b1f41a9a6b (patch)
tree6ea9f285900feb815142c7b7a8cafff4433ace3c /llvm/lib
parent5b348718df4062efccf1559928c51df9ecce946e (diff)
downloadbcm5719-llvm-1610666ea55c2938c9f858a5c0fec3b1f41a9a6b.tar.gz
bcm5719-llvm-1610666ea55c2938c9f858a5c0fec3b1f41a9a6b.zip
fprintf CAN take exactly 2 args
llvm-svn: 5830
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp b/llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp
index 8214cc5f1fe..3b4090b8980 100644
--- a/llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp
+++ b/llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp
@@ -685,7 +685,7 @@ GenericValue lle_X_ungetc(FunctionType *M, const vector<GenericValue> &Args) {
// int fprintf(FILE *,sbyte *, ...) - a very rough implementation to make output
// useful.
GenericValue lle_X_fprintf(FunctionType *M, const vector<GenericValue> &Args) {
- assert(Args.size() > 2);
+ assert(Args.size() >= 2);
char Buffer[10000];
vector<GenericValue> NewArgs;
NewArgs.push_back(PTOGV(Buffer));
OpenPOWER on IntegriCloud