OSDN Git Service

[JumpThreading] Change a return of ComputeValueKnownInPredecessors()
authorHaicheng Wu <haicheng@codeaurora.org>
Mon, 8 Feb 2016 17:00:39 +0000 (17:00 +0000)
committerHaicheng Wu <haicheng@codeaurora.org>
Mon, 8 Feb 2016 17:00:39 +0000 (17:00 +0000)
commitb21e2903efbfb66ec2a0d7731bc826496ba89d8e
tree37150bcb009f5d2bd896b8b853652bf196eb1350
parent98d69cc318b5ae607b923cf0fb4d6b1c8175fdff
[JumpThreading] Change a return of ComputeValueKnownInPredecessors()

Change a return statement of ComputeValueKnownInPredecessors() to be the same as
the rest return statements of the function. Otherwise, it might return true with
an empty Result when the current basic block has no predecessors and trigger the
first assert of JumpThreading::ProcessThreadableEdges().

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@260110 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/JumpThreading.cpp