* Fix a bug that was causing lli to misrun:
authorChris Lattner <sabre@nondot.org>
Fri, 13 Sep 2002 23:30:42 +0000 (23:30 +0000)
committerChris Lattner <sabre@nondot.org>
Fri, 13 Sep 2002 23:30:42 +0000 (23:30 +0000)
    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

lib/ExecutionEngine/Interpreter/Execution.cpp
lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp

index 909f568a582521be933024d76312c11f656d4109..ac011d743bef514dfd2c878d87d5192c9ea78087 100644 (file)
@@ -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
index 1a425c2bb62fec27483f352f142886ba44187367..5b57aa756641a86d041f09ec3529d83cea19570b 100644 (file)
@@ -14,7 +14,6 @@
 #include "llvm/DerivedTypes.h"
 #include <map>
 #include <dlfcn.h>
-#include <iostream>
 #include <link.h>
 #include <math.h>
 #include <stdio.h>