diff options
author | Dan Gohman <gohman@apple.com> | 2007-12-14 15:41:34 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2007-12-14 15:41:34 +0000 |
commit | ded2b0d0fb0d4fa09198e3d05da529d2c97214c3 (patch) | |
tree | c7889a60dd3e88fd586f792cf4ae9474fb705576 /lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp | |
parent | 064a57a77d1a146a0efa98bdf64b0355dd9c391f (diff) | |
download | external_llvm-ded2b0d0fb0d4fa09198e3d05da529d2c97214c3.zip external_llvm-ded2b0d0fb0d4fa09198e3d05da529d2c97214c3.tar.gz external_llvm-ded2b0d0fb0d4fa09198e3d05da529d2c97214c3.tar.bz2 |
Add explicit keywords, and fix a minor typo that they uncovered.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@45034 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp')
-rw-r--r-- | lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp b/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp index f45875f..4e9b77b 100644 --- a/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp +++ b/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp @@ -653,7 +653,7 @@ GenericValue lle_X_fwrite(FunctionType *FT, const vector<GenericValue> &Args) { // char *fgets(char *s, int n, FILE *stream); GenericValue lle_X_fgets(FunctionType *FT, const vector<GenericValue> &Args) { assert(Args.size() == 3); - return GVTOP(fgets((char*)GVTOP(Args[0]), Args[1].IntVal.getZExtValue(), + return PTOGV(fgets((char*)GVTOP(Args[0]), Args[1].IntVal.getZExtValue(), getFILE(GVTOP(Args[2])))); } |