Skip to content

Commit e958379

Browse files
committed
Fold the opt size check into the assert to silence an unused variable warning.
1 parent d9067dc commit e958379

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

llvm/lib/Target/X86/X86ISelDAGToDAG.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -182,9 +182,8 @@ namespace {
182182
"indirect-tls-seg-refs");
183183

184184
// OptFor[Min]Size are used in pattern predicates that isel is matching.
185-
bool OptForSize = MF.getFunction().hasOptSize();
186185
OptForMinSize = MF.getFunction().hasMinSize();
187-
assert((!OptForMinSize || OptForSize) &&
186+
assert((!OptForMinSize || MF.getFunction().hasOptSize()) &&
188187
"OptForMinSize implies OptForSize");
189188

190189
SelectionDAGISel::runOnMachineFunction(MF);

0 commit comments

Comments
 (0)