diff options
author | Chris Lattner <sabre@nondot.org> | 2003-04-22 21:15:56 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2003-04-22 21:15:56 +0000 |
commit | 5bff50d1b0feb8f801541a2f9e3e8c5261dc7943 (patch) | |
tree | a495be47867cd59057c7f933116fdd39347af606 /lib/ExecutionEngine | |
parent | b945e4ddae07c8f5b69bb79ad9a591496b645b18 (diff) | |
download | external_llvm-5bff50d1b0feb8f801541a2f9e3e8c5261dc7943.zip external_llvm-5bff50d1b0feb8f801541a2f9e3e8c5261dc7943.tar.gz external_llvm-5bff50d1b0feb8f801541a2f9e3e8c5261dc7943.tar.bz2 |
Implement cast to bool
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5855 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/ExecutionEngine')
-rw-r--r-- | lib/ExecutionEngine/Interpreter/Execution.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/ExecutionEngine/Interpreter/Execution.cpp b/lib/ExecutionEngine/Interpreter/Execution.cpp index 055a425..6710a9a 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; |