commit | 9dbf6dddcec7a627fabfc722e124311321de8fa0 | [log] [tgz] |
---|---|---|
author | Chris Lattner <sabre@nondot.org> | Mon Apr 21 22:43:20 2003 +0000 |
committer | Chris Lattner <sabre@nondot.org> | Mon Apr 21 22:43:20 2003 +0000 |
tree | 9d8d7ce37d8c61ad7631596c89b612ea97d75476 | |
parent | 4b12cdec01ca51dbe6f1ee75b868d8f65504925a [diff] [blame] |
fprintf CAN take exactly 2 args git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5830 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp b/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp index 8214cc5..3b4090b 100644 --- a/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp +++ b/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp
@@ -685,7 +685,7 @@ // 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));