[llvm] r257278 - Fix a control flow problem in commit rL257277.

David Blaikie via llvm-commits llvm-commits at lists.llvm.org
Sun Jan 10 21:04:54 PST 2016


On Sat, Jan 9, 2016 at 10:13 PM, Chen Li via llvm-commits <
llvm-commits at lists.llvm.org> wrote:

> Author: chenli
> Date: Sun Jan 10 00:13:32 2016
> New Revision: 257278
>
> URL: http://llvm.org/viewvc/llvm-project?rev=257278&view=rev
> Log:
> Fix a control flow problem in commit rL257277.
>
>
> Modified:
>     llvm/trunk/lib/Transforms/Utils/SimplifyCFG.cpp
>
> Modified: llvm/trunk/lib/Transforms/Utils/SimplifyCFG.cpp
> URL:
> http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Utils/SimplifyCFG.cpp?rev=257278&r1=257277&r2=257278&view=diff
>
> ==============================================================================
> --- llvm/trunk/lib/Transforms/Utils/SimplifyCFG.cpp (original)
> +++ llvm/trunk/lib/Transforms/Utils/SimplifyCFG.cpp Sun Jan 10 00:13:32
> 2016
> @@ -3247,6 +3247,8 @@ bool SimplifyCFGOpt::SimplifyResume(Resu
>             RI->getValue() == RI->getParent()->getFirstNonPHI())
>      // The resume must unwind the exception that caused control to branch
> here.
>      return SimplifySingleResume(RI);
> +  else
> +    return false;
>

Drop the else-after-return, and simply "return false" unconditionally
outside the if.


>  }
>
>  // Simplify resume that is shared by several landing pads (phi of landing
> pad).
>
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-commits
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160110/c1a586f1/attachment.html>


More information about the llvm-commits mailing list