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

Chris Lattner lattner at cs.uiuc.edu
Fri Oct 25 20:58:01 PDT 2002


Changes in directory llvm/tools/lli:

Execution.cpp updated: 1.68 -> 1.69

---
Log message:

Fix a major bug in lli


---
Diffs of the changes:

Index: llvm/tools/lli/Execution.cpp
diff -u llvm/tools/lli/Execution.cpp:1.68 llvm/tools/lli/Execution.cpp:1.69
--- llvm/tools/lli/Execution.cpp:1.68	Tue Oct 15 15:34:05 2002
+++ llvm/tools/lli/Execution.cpp	Fri Oct 25 20:57:15 2002
@@ -936,7 +936,7 @@
                             Ptr->Untyped[7] = (Val.ULongVal >> 56) & 255;
                             break;
     default:
-      cout << "Cannot load value of type " << Ty << "!\n";
+      cout << "Cannot store value of type " << Ty << "!\n";
     }
   } else {
     switch (Ty->getPrimitiveID()) {
@@ -967,7 +967,7 @@
                             Ptr->Untyped[0] = (Val.ULongVal >> 56) & 255;
                             break;
     default:
-      cout << "Cannot load value of type " << Ty << "!\n";
+      cout << "Cannot store value of type " << Ty << "!\n";
     }
   }
 }
@@ -975,7 +975,8 @@
 static void executeStoreInst(StoreInst &I, ExecutionContext &SF) {
   GenericValue Val = getOperandValue(I.getOperand(0), SF);
   GenericValue SRC = getOperandValue(I.getPointerOperand(), SF);
-  StoreValueToMemory(Val, (GenericValue *)SRC.PointerVal, I.getType());
+  StoreValueToMemory(Val, (GenericValue *)SRC.PointerVal,
+                     I.getOperand(0)->getType());
 }
 
 





More information about the llvm-commits mailing list