Fix one real nasty bug
authorChris Lattner <sabre@nondot.org>
Fri, 2 Aug 2002 22:06:04 +0000 (22:06 +0000)
committerChris Lattner <sabre@nondot.org>
Fri, 2 Aug 2002 22:06:04 +0000 (22:06 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3227 91177308-0d34-0410-b5e6-96231b3b80d8

lib/ExecutionEngine/Interpreter/Execution.cpp

index 77d801129a4cedb18e969b6748181323be390899..f1e1d0c580e760e0b7b918337d232d9117ad4d7e 100644 (file)
@@ -1038,7 +1038,7 @@ static void executeCastInst(CastInst &I, ExecutionContext &SF) {
     IMPLEMENT_CAST_CASE(UByte  , (unsigned char));
     IMPLEMENT_CAST_CASE(SByte  , (  signed char));
     IMPLEMENT_CAST_CASE(UShort , (unsigned short));
-    IMPLEMENT_CAST_CASE(Short  , (  signed char));
+    IMPLEMENT_CAST_CASE(Short  , (  signed short));
     IMPLEMENT_CAST_CASE(UInt   , (unsigned int ));
     IMPLEMENT_CAST_CASE(Int    , (  signed int ));
     IMPLEMENT_CAST_CASE(ULong  , (uint64_t));