From 5bff50d1b0feb8f801541a2f9e3e8c5261dc7943 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Tue, 22 Apr 2003 21:15:56 +0000 Subject: [PATCH] Implement cast to bool git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5855 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/ExecutionEngine/Interpreter/Execution.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/ExecutionEngine/Interpreter/Execution.cpp b/lib/ExecutionEngine/Interpreter/Execution.cpp index 055a4256edd..6710a9ae04d 100644 --- a/lib/ExecutionEngine/Interpreter/Execution.cpp +++ b/lib/ExecutionEngine/Interpreter/Execution.cpp @@ -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; -- 2.34.1