Fold variable into assert.

Silences an unused variable warning in Release builds.

llvm-svn: 305488
This commit is contained in:
Benjamin Kramer 2017-06-15 17:58:24 +00:00
parent 6eec9e21a5
commit 00a970a84b
1 changed files with 1 additions and 2 deletions

View File

@ -3582,8 +3582,7 @@ void SelectionDAGBuilder::visitLoad(const LoadInst &I) {
}
void SelectionDAGBuilder::visitStoreToSwiftError(const StoreInst &I) {
const TargetLowering &TLI = DAG.getTargetLoweringInfo();
assert(TLI.supportSwiftError() &&
assert(DAG.getTargetLoweringInfo().supportSwiftError() &&
"call visitStoreToSwiftError when backend supports swifterror");
SmallVector<EVT, 4> ValueVTs;