aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ExecutionEngine
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-04-22 21:15:56 +0000
committerChris Lattner <sabre@nondot.org>2003-04-22 21:15:56 +0000
commit5bff50d1b0feb8f801541a2f9e3e8c5261dc7943 (patch)
treea495be47867cd59057c7f933116fdd39347af606 /lib/ExecutionEngine
parentb945e4ddae07c8f5b69bb79ad9a591496b645b18 (diff)
downloadexternal_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.cpp2
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;