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 | bbd1157f713648a68ddaba39a770a5a73d119d77 (patch) | |
tree | 82088dd776e49b8deb81116c333e1c6484286660 /llvm/lib/ExecutionEngine/Interpreter | |
parent | fa5fc55f837e7d9be663da8bd690d60c09a52dea (diff) | |
download | bcm5719-llvm-bbd1157f713648a68ddaba39a770a5a73d119d77.tar.gz bcm5719-llvm-bbd1157f713648a68ddaba39a770a5a73d119d77.zip |
Implement cast to bool
llvm-svn: 5855
Diffstat (limited to 'llvm/lib/ExecutionEngine/Interpreter')
-rw-r--r-- | llvm/lib/ExecutionEngine/Interpreter/Execution.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/ExecutionEngine/Interpreter/Execution.cpp b/llvm/lib/ExecutionEngine/Interpreter/Execution.cpp index 055a4256edd..6710a9ae04d 100644 --- a/llvm/lib/ExecutionEngine/Interpreter/Execution.cpp +++ b/llvm/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; |