aboutsummaryrefslogtreecommitdiff
path: root/lib/ExecutionEngine/Interpreter/Execution.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-10-26 01:57:15 +0000
committerChris Lattner <sabre@nondot.org>2002-10-26 01:57:15 +0000
commit683d5da9fbb68be46c8ad2c8e9f1f94cbdf7b71c (patch)
tree39e1d001505ab616fca1f5fee4c8bfee2807893f /lib/ExecutionEngine/Interpreter/Execution.cpp
parent1405ec0ce19e95555337aaf1f9d66a56394aed6e (diff)
Fix a major bug in lli
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4289 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/ExecutionEngine/Interpreter/Execution.cpp')
-rw-r--r--lib/ExecutionEngine/Interpreter/Execution.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/ExecutionEngine/Interpreter/Execution.cpp b/lib/ExecutionEngine/Interpreter/Execution.cpp
index 4c8be25983..9282fe269a 100644
--- a/lib/ExecutionEngine/Interpreter/Execution.cpp
+++ b/lib/ExecutionEngine/Interpreter/Execution.cpp
@@ -936,7 +936,7 @@ static void StoreValueToMemory(GenericValue Val, GenericValue *Ptr,
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 @@ static void StoreValueToMemory(GenericValue Val, GenericValue *Ptr,
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 StoreValueToMemory(GenericValue Val, GenericValue *Ptr,
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());
}