Hi tech@,

The following patch fixes the build warning:

......

 variable 'CFIIndex' [-Wunused-variable]
  unsigned CFIIndex;
           ^
1 warning generated.


Index: X86FrameLowering.cpp
===================================================================
RCS file: /cvs/src/gnu/llvm/lib/Target/X86/X86FrameLowering.cpp,v
retrieving revision 1.2
diff -u -p -r1.2 X86FrameLowering.cpp
--- X86FrameLowering.cpp        6 Jun 2018 00:14:29 -0000       1.2
+++ X86FrameLowering.cpp        6 Jun 2018 07:34:44 -0000
@@ -3185,7 +3185,6 @@ void X86FrameLowering::insertReturnProte
   if (!MFI.hasReturnProtector() || !MFI.hasReturnProtectorTempRegister())
     return;

-  unsigned CFIIndex;
   MachineBasicBlock::instr_iterator MBBI = MBB.instr_begin();
   DebugLoc MBBDL = MBB.findDebugLoc(MBBI);
   const Function &Fn = MF.getFunction();
-- 
Best Regards
Nan Xiao

Reply via email to