[llvm-commits] CVS: llvm/tools/lli/Execution.cpp ExternalFunctions.cpp

Chris Lattner lattner at cs.uiuc.edu
Fri Sep 13 18:31:01 PDT 2002


Changes in directory llvm/tools/lli:

Execution.cpp updated: 1.65 -> 1.66
ExternalFunctions.cpp updated: 1.32 -> 1.33

---
Log message:

* Fix a bug that was causing lli to misrun:
    test/Regression/Transforms/DecomposeMultiDimRefs/mixedindices.c
* Eliminate unneccesary #include



---
Diffs of the changes:

Index: llvm/tools/lli/Execution.cpp
diff -u llvm/tools/lli/Execution.cpp:1.65 llvm/tools/lli/Execution.cpp:1.66
--- llvm/tools/lli/Execution.cpp:1.65	Fri Sep 13 09:41:38 2002
+++ llvm/tools/lli/Execution.cpp	Fri Sep 13 18:30:42 2002
@@ -823,7 +823,7 @@
 
       // 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: llvm/tools/lli/ExternalFunctions.cpp
diff -u llvm/tools/lli/ExternalFunctions.cpp:1.32 llvm/tools/lli/ExternalFunctions.cpp:1.33
--- llvm/tools/lli/ExternalFunctions.cpp:1.32	Fri Aug  2 18:08:32 2002
+++ llvm/tools/lli/ExternalFunctions.cpp	Fri Sep 13 18:30:42 2002
@@ -14,7 +14,6 @@
 #include "llvm/DerivedTypes.h"
 #include <map>
 #include <dlfcn.h>
-#include <iostream>
 #include <link.h>
 #include <math.h>
 #include <stdio.h>





More information about the llvm-commits mailing list