diff options
author | Chris Lattner <sabre@nondot.org> | 2002-10-26 01:57:15 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2002-10-26 01:57:15 +0000 |
commit | 7fe1f7c9317c54d0d179e0c27033eff568d99345 (patch) | |
tree | a1d98299bd820c1851220ab7b9dba97622b2e05a /llvm/lib/ExecutionEngine/Interpreter | |
parent | a81795267dee4c9250291f9746811eb69f9a3936 (diff) | |
download | bcm5719-llvm-7fe1f7c9317c54d0d179e0c27033eff568d99345.tar.gz bcm5719-llvm-7fe1f7c9317c54d0d179e0c27033eff568d99345.zip |
Fix a major bug in lli
llvm-svn: 4289
Diffstat (limited to 'llvm/lib/ExecutionEngine/Interpreter')
-rw-r--r-- | llvm/lib/ExecutionEngine/Interpreter/Execution.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/llvm/lib/ExecutionEngine/Interpreter/Execution.cpp b/llvm/lib/ExecutionEngine/Interpreter/Execution.cpp index 4c8be259835..9282fe269aa 100644 --- a/llvm/lib/ExecutionEngine/Interpreter/Execution.cpp +++ b/llvm/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()); } |