From: Charles Davis Date: Sat, 21 May 2011 00:09:04 +0000 (+0000) Subject: Set the "LastFrameInst" field when streaming a .seh_setframe directive. This X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=5c2256a5719172273eaef198f92d8af924ff8623;p=oota-llvm.git Set the "LastFrameInst" field when streaming a .seh_setframe directive. This is needed for an upcoming patch. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@131772 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/MC/MCStreamer.cpp b/lib/MC/MCStreamer.cpp index 625931f3917..ab7c798198a 100644 --- a/lib/MC/MCStreamer.cpp +++ b/lib/MC/MCStreamer.cpp @@ -383,6 +383,7 @@ void MCStreamer::EmitWin64EHSetFrame(unsigned Register, unsigned Offset) { EnsureValidW64UnwindInfo(); MCWin64EHUnwindInfo *CurFrame = CurrentW64UnwindInfo; MCWin64EHInstruction Inst(Win64EH::UOP_SetFPReg, Register, Offset); + CurFrame->LastFrameInst = CurFrame->Instructions.size(); CurFrame->Instructions.push_back(Inst); }