OSDN Git Service

Fix variable used only in assertion.
authorNick Lewycky <nicholas@mxc.ca>
Tue, 2 Dec 2014 01:09:56 +0000 (01:09 +0000)
committerNick Lewycky <nicholas@mxc.ca>
Tue, 2 Dec 2014 01:09:56 +0000 (01:09 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@223101 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/X86/X86MCInstLower.cpp

index 6a10916..b853110 100644 (file)
@@ -816,8 +816,9 @@ static void LowerSTATEPOINT(MCStreamer &OS, StackMaps &SM,
   assert(Is64Bit && "Statepoint currently only supports X86-64");
 
   // We need to record the frame size for stack walking
-  const MachineFunctionMF = MI.getParent()->getParent();
+  const MachineFunction *MF = MI.getParent()->getParent();
   assert(MF && "can't find machine function?");
+  (void)MF;
 
   //
   // Emit call instruction