fprintf CAN take exactly 2 args
authorChris Lattner <sabre@nondot.org>
Mon, 21 Apr 2003 22:43:20 +0000 (22:43 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 21 Apr 2003 22:43:20 +0000 (22:43 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5830 91177308-0d34-0410-b5e6-96231b3b80d8

lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp

index 8214cc5f1feec334e04afce25f13fd2904bf89c5..3b4090b898070611e2765b79b5ec3cc609d92c6b 100644 (file)
@@ -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));