Skip to content

Commit 194897e

Browse files
committed
[ARM] Fix unused variable warning in Release builds
1 parent 213d184 commit 194897e

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

llvm/lib/Target/ARM/Thumb1InstrInfo.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,9 +135,8 @@ void Thumb1InstrInfo::expandLoadStackGuard(
135135
MachineBasicBlock::iterator MI) const {
136136
MachineFunction &MF = *MI->getParent()->getParent();
137137
const TargetMachine &TM = MF.getTarget();
138-
Module &M = *MF.getFunction().getParent();
139138

140-
assert(M.getStackProtectorGuard() != "tls" &&
139+
assert(MF.getFunction().getParent()->getStackProtectorGuard() != "tls" &&
141140
"TLS stack protector not supported for Thumb1 targets");
142141

143142
if (TM.isPositionIndependent())

0 commit comments

Comments
 (0)