File tree 1 file changed +8
-9
lines changed
1 file changed +8
-9
lines changed Original file line number Diff line number Diff line change @@ -916,16 +916,15 @@ void PPCAsmPrinter::emitInstruction(const MachineInstr *MI) {
916
916
// handled in PPCLinuxAsmPrinter.
917
917
if (MAI->isLittleEndian ())
918
918
return ;
919
- const Function &F = MI->getParent ()->getParent ()->getFunction ();
920
- if (F.hasFnAttribute (" patchable-function-entry" )) {
921
- unsigned Num = 0 ;
922
- if (F.getFnAttribute (" patchable-function-entry" )
923
- .getValueAsString ()
924
- .getAsInteger (10 , Num))
925
- return ;
926
- emitNops (Num);
919
+ const Function &F = MF->getFunction ();
920
+ unsigned Num = 0 ;
921
+ (void )F.getFnAttribute (" patchable-function-entry" )
922
+ .getValueAsString ()
923
+ .getAsInteger (10 , Num);
924
+ if (!Num)
927
925
return ;
928
- }
926
+ emitNops (Num);
927
+ return ;
929
928
}
930
929
case TargetOpcode::DBG_VALUE:
931
930
llvm_unreachable (" Should be handled target independently" );
You can’t perform that action at this time.
0 commit comments