forked from OSchip/llvm-project
NFC: Fix variable only used in asserts by propagating the value.
Summary: This fixes builds with assertions disabled that would otherwise fail with unused variable warnings Subscribers: nemanjai, hiraditya, kbarton, MaskRay, jsji, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D69123 llvm-svn: 375148
This commit is contained in:
parent
0aaa193127
commit
05c3d90248
|
@ -536,7 +536,6 @@ static MCSymbol *getMCSymbolForTOCPseudoMO(const MachineOperand &MO,
|
|||
void PPCAsmPrinter::EmitInstruction(const MachineInstr *MI) {
|
||||
MCInst TmpInst;
|
||||
const bool IsDarwin = TM.getTargetTriple().isOSDarwin();
|
||||
const bool IsPPC64 = Subtarget->isPPC64();
|
||||
const bool IsAIX = Subtarget->isAIXABI();
|
||||
const Module *M = MF->getFunction().getParent();
|
||||
PICLevel::Level PL = M->getPICLevel();
|
||||
|
@ -760,7 +759,8 @@ void PPCAsmPrinter::EmitInstruction(const MachineInstr *MI) {
|
|||
return;
|
||||
}
|
||||
case PPC::ADDIStocHA: {
|
||||
assert((IsAIX && !IsPPC64 && TM.getCodeModel() == CodeModel::Large) &&
|
||||
assert((IsAIX && !Subtarget->isPPC64() &&
|
||||
TM.getCodeModel() == CodeModel::Large) &&
|
||||
"This pseudo should only be selected for 32-bit large code model on"
|
||||
" AIX.");
|
||||
|
||||
|
@ -790,7 +790,8 @@ void PPCAsmPrinter::EmitInstruction(const MachineInstr *MI) {
|
|||
return;
|
||||
}
|
||||
case PPC::LWZtocL: {
|
||||
assert(IsAIX && !IsPPC64 && TM.getCodeModel() == CodeModel::Large &&
|
||||
assert(IsAIX && !Subtarget->isPPC64() &&
|
||||
TM.getCodeModel() == CodeModel::Large &&
|
||||
"This pseudo should only be selected for 32-bit large code model on"
|
||||
" AIX.");
|
||||
|
||||
|
|
Loading…
Reference in New Issue