[llvm-commits] Typo fix in lib/CodeGen/MachineInstr.cpp. Please review.
Jakob Stoklund Olesen
stoklund at 2pi.dk
Tue Jan 8 12:43:10 PST 2013
On Jan 8, 2013, at 12:07 PM, "Sergei Larin" <slarin at codeaurora.org> wrote:
>
> Jakob,
>
> There is a trivial typo in MachineInstr::unbundleFromSucc() method.
> Please OK the fix:
>
> Index: lib/CodeGen/MachineInstr.cpp
> ===================================================================
> --- lib/CodeGen/MachineInstr.cpp (revision 171865)
> +++ lib/CodeGen/MachineInstr.cpp (working copy)
> @@ -897,7 +897,7 @@
> assert(isBundledWithSucc() && "MI isn't bundled with its successor");
> clearFlag(BundledSucc);
> MachineBasicBlock::instr_iterator Succ = this;
> - --Succ;
> + ++Succ;
> assert(Succ->isBundledWithPred() && "Inconsistent bundle flags");
> Succ->clearFlag(BundledPred);
> }
>
> Thanks.
Thanks, Sergei.
Looks good!
/jakob
More information about the llvm-commits
mailing list