summaryrefslogtreecommitdiffstats
path: root/llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2006-05-24 19:21:13 +0000
committerReid Spencer <rspencer@reidspencer.com>2006-05-24 19:21:13 +0000
commit6e64180f03e95eb6c97f458990087ec99cd3f8f8 (patch)
treee9c4cd50350136936b9249ca45b0162af48d5c0f /llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp
parent94531bf367cbfaec2799569694e8570e7d166e3f (diff)
downloadbcm5719-llvm-6e64180f03e95eb6c97f458990087ec99cd3f8f8.tar.gz
bcm5719-llvm-6e64180f03e95eb6c97f458990087ec99cd3f8f8.zip
For PR786:
Minor tweaks in public headers and a few .cpp files so that LLVM can build successfully with -pedantic and projects using LLVM with -pedantic don't get warnings from LLVM. There's still more -pedantic warnings to fix. llvm-svn: 28453
Diffstat (limited to 'llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp')
-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 20b7227809a..fc58115bded 100644
--- a/llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp
+++ b/llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp
@@ -313,7 +313,7 @@ GenericValue lle_X_sprintf(FunctionType *M, const vector<GenericValue> &Args) {
if (HowLong >= 1) {
if (HowLong == 1 &&
TheInterpreter->getModule().getPointerSize()==Module::Pointer64 &&
- sizeof(long) < sizeof(long long)) {
+ sizeof(long) < sizeof(int64_t)) {
// Make sure we use %lld with a 64 bit argument because we might be
// compiling LLI on a 32 bit compiler.
unsigned Size = strlen(FmtBuf);
OpenPOWER on IntegriCloud