Implement cast to bool
authorChris Lattner <sabre@nondot.org>
Tue, 22 Apr 2003 21:15:56 +0000 (21:15 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 22 Apr 2003 21:15:56 +0000 (21:15 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5855 91177308-0d34-0410-b5e6-96231b3b80d8

lib/ExecutionEngine/Interpreter/Execution.cpp

index 055a4256eddb2696df866f5bbb288ec69c0c58a2..6710a9ae04d127bee04143abb7e18bbda8ab766e 100644 (file)
@@ -979,8 +979,10 @@ static GenericValue executeCastOperation(Value *SrcVal, const Type *Ty,
     IMPLEMENT_CAST_CASE(Pointer, (PointerTy));
     IMPLEMENT_CAST_CASE(Float  , (float));
     IMPLEMENT_CAST_CASE(Double , (double));
+    IMPLEMENT_CAST_CASE(Bool   , (bool));
   default:
     cout << "Unhandled dest type for cast instruction: " << Ty << "\n";
+    abort();
   }
 
   return Dest;