summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-09-13 23:30:42 +0000
committerChris Lattner <sabre@nondot.org>2002-09-13 23:30:42 +0000
commitbd0d2eab64edfd46ac6c91aa2a561f78af4b770e (patch)
tree10f2f633aaaf99b297d04ee938c0814c5158c38a /llvm/lib
parentfc91ee91e83213eeef02291a810882ba581128f3 (diff)
downloadbcm5719-llvm-bd0d2eab64edfd46ac6c91aa2a561f78af4b770e.tar.gz
bcm5719-llvm-bd0d2eab64edfd46ac6c91aa2a561f78af4b770e.zip
* Fix a bug that was causing lli to misrun:
test/Regression/Transforms/DecomposeMultiDimRefs/mixedindices.c * Eliminate unneccesary #include llvm-svn: 3712
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/ExecutionEngine/Interpreter/Execution.cpp2
-rw-r--r--llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp1
2 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/ExecutionEngine/Interpreter/Execution.cpp b/llvm/lib/ExecutionEngine/Interpreter/Execution.cpp
index 909f568a582..ac011d743be 100644
--- a/llvm/lib/ExecutionEngine/Interpreter/Execution.cpp
+++ b/llvm/lib/ExecutionEngine/Interpreter/Execution.cpp
@@ -823,7 +823,7 @@ static GenericValue executeGEPOperation(Value *Ptr, User::op_iterator I,
// Get the index number for the array... which must be uint type...
assert((*I)->getType() == Type::LongTy);
- unsigned Idx = getOperandValue(*I, SF).UIntVal;
+ unsigned Idx = getOperandValue(*I, SF).LongVal;
if (const ArrayType *AT = dyn_cast<ArrayType>(ST))
if (Idx >= AT->getNumElements() && ArrayChecksEnabled) {
cerr << "Out of range memory access to element #" << Idx
diff --git a/llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp b/llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp
index 1a425c2bb62..5b57aa75664 100644
--- a/llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp
+++ b/llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp
@@ -14,7 +14,6 @@
#include "llvm/DerivedTypes.h"
#include <map>
#include <dlfcn.h>
-#include <iostream>
#include <link.h>
#include <math.h>
#include <stdio.h>
OpenPOWER on IntegriCloud