Fix compilation issues.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@209342 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Eric Christopher
2014-05-21 23:51:57 +00:00
parent 189fe78e2f
commit a2f371b8eb
3 changed files with 7 additions and 4 deletions

View File

@@ -777,7 +777,9 @@ bool EarlyIfConverter::runOnMachineFunction(MachineFunction &MF) {
DEBUG(dbgs() << "********** EARLY IF-CONVERSION **********\n"
<< "********** Function: " << MF.getName() << '\n');
// Only run if conversion if the target wants it.
if (!MF.getTarget().getSubtarget().enableEarlyIfConversion())
if (!MF.getTarget()
.getSubtarget<TargetSubtargetInfo>()
.enableEarlyIfConversion())
return true;
TII = MF.getTarget().getInstrInfo();