summaryrefslogtreecommitdiffstats
path: root/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
commite8b3e9b2e1b1c8eaa3ba50e69053a5aa87def588 (patch)
tree3c4dc08d9e638f0d686d869860200ed5efe6efdd /lib
parente87e1c9aa947e6558412b6517308410cd0f5aea4 (diff)
downloadexternal_llvm-e8b3e9b2e1b1c8eaa3ba50e69053a5aa87def588.zip
external_llvm-e8b3e9b2e1b1c8eaa3ba50e69053a5aa87def588.tar.gz
external_llvm-e8b3e9b2e1b1c8eaa3ba50e69053a5aa87def588.tar.bz2
* Fix a bug that was causing lli to misrun:
test/Regression/Transforms/DecomposeMultiDimRefs/mixedindices.c * Eliminate unneccesary #include git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3712 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r--lib/ExecutionEngine/Interpreter/Execution.cpp2
-rw-r--r--lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp1
2 files changed, 1 insertions, 2 deletions
diff --git a/lib/ExecutionEngine/Interpreter/Execution.cpp b/lib/ExecutionEngine/Interpreter/Execution.cpp
index 909f568..ac011d7 100644
--- a/lib/ExecutionEngine/Interpreter/Execution.cpp
+++ b/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/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp b/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp
index 1a425c2..5b57aa7 100644
--- a/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp
+++ b/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>