mirror of
https://github.com/RPCS3/llvm.git
synced 2024-11-26 13:10:42 +00:00
Implement cast to bool
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5855 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
b945e4ddae
commit
5bff50d1b0
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user