mirror of
https://github.com/RPCS3/llvm.git
synced 2025-01-12 15:30:56 +00:00
Use cast<> instead of dyn_cast + assert
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@212380 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
9363b585ce
commit
f92e09efd3
@ -119,8 +119,7 @@ void SITypeRewriter::visitCallInst(CallInst &I) {
|
|||||||
Type::getInt32Ty(I.getContext())){
|
Type::getInt32Ty(I.getContext())){
|
||||||
Type *ElementTy = Arg->getType()->getVectorElementType();
|
Type *ElementTy = Arg->getType()->getVectorElementType();
|
||||||
std::string TypeName = "i32";
|
std::string TypeName = "i32";
|
||||||
InsertElementInst *Def = dyn_cast<InsertElementInst>(Arg);
|
InsertElementInst *Def = cast<InsertElementInst>(Arg);
|
||||||
assert(Def);
|
|
||||||
Args.push_back(Def->getOperand(1));
|
Args.push_back(Def->getOperand(1));
|
||||||
Types.push_back(ElementTy);
|
Types.push_back(ElementTy);
|
||||||
std::string VecTypeName = "v1" + TypeName;
|
std::string VecTypeName = "v1" + TypeName;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user