forked from OSchip/llvm-project
[AutoUpgrade] Fix -Wunused-variable in -DLLVM_ENABLE_ASSERTIONS=off builds
This commit is contained in:
parent
bdea2afc8c
commit
e572927f63
|
@ -3808,9 +3808,9 @@ void llvm::UpgradeIntrinsicCall(CallBase *CI, Function *NewFn) {
|
|||
|
||||
// This must be an upgrade from a named to a literal struct.
|
||||
auto *OldST = cast<StructType>(CI->getType());
|
||||
auto *NewST = cast<StructType>(NewFn->getReturnType());
|
||||
assert(OldST != NewST && "Return type must have changed");
|
||||
assert(OldST->getNumElements() == NewST->getNumElements() &&
|
||||
assert(OldST != NewFn->getReturnType() && "Return type must have changed");
|
||||
assert(OldST->getNumElements() ==
|
||||
cast<StructType>(NewFn->getReturnType())->getNumElements() &&
|
||||
"Must have same number of elements");
|
||||
|
||||
SmallVector<Value *> Args(CI->args());
|
||||
|
|
Loading…
Reference in New Issue