Skip to content

Commit

Permalink
NewGVN: Fix a small formatting issue in performSymbolicLoadEvaluation.
Browse files Browse the repository at this point in the history
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@299683 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
dberlin committed Apr 6, 2017
1 parent a96ab41 commit 8648b7d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/Transforms/Scalar/NewGVN.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1079,9 +1079,9 @@ const Expression *NewGVN::performSymbolicLoadEvaluation(Instruction *I) {
// defining access has a different type, or it is a pointer produced by
// certain memory operations that cause the memory to have a fixed value
// (IE things like calloc).
const Expression *CoercionResult = performSymbolicLoadCoercion(
LI->getType(), LoadAddressLeader, LI, DefiningInst, DefiningAccess);
if (CoercionResult)
if (const auto *CoercionResult =
performSymbolicLoadCoercion(LI->getType(), LoadAddressLeader, LI,
DefiningInst, DefiningAccess))
return CoercionResult;
}
}
Expand Down

0 comments on commit 8648b7d

Please sign in to comment.