mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-12-12 09:41:26 +00:00
Fold variable that's only used in assert into the assert.
Avoids unused variable warnings in Release builds. llvm-svn: 183512
This commit is contained in:
parent
ee30e83ca8
commit
f0ec199448
@ -74,8 +74,7 @@ ScheduleHazardRecognizer *PPCInstrInfo::CreateTargetPostRAHazardRecognizer(
|
||||
// Most subtargets use a PPC970 recognizer.
|
||||
if (Directive != PPC::DIR_440 && Directive != PPC::DIR_A2 &&
|
||||
Directive != PPC::DIR_E500mc && Directive != PPC::DIR_E5500) {
|
||||
const TargetInstrInfo *TII = TM.getInstrInfo();
|
||||
assert(TII && "No InstrInfo?");
|
||||
assert(TM.getInstrInfo() && "No InstrInfo?");
|
||||
|
||||
return new PPCHazardRecognizer970(TM);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user