aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/DebugInfo/CodeView/DebugCrossImpSubsection.cpp
diff options
context:
space:
mode:
authorHenry Wong <movietravelcode@outlook.com>2018-03-31 12:46:46 +0000
committerHenry Wong <movietravelcode@outlook.com>2018-03-31 12:46:46 +0000
commitf717d4795ac42bf51b52d9cbff70b7a85dbdd9bd (patch)
tree3c104742272ab4e753a9b48caf4509c670b6cdab /llvm/lib/DebugInfo/CodeView/DebugCrossImpSubsection.cpp
parent3b8ad346f99344f93ecda94e8327caa332c4b2a8 (diff)
downloadllvm-f717d4795ac42bf51b52d9cbff70b7a85dbdd9bd.zip
llvm-f717d4795ac42bf51b52d9cbff70b7a85dbdd9bd.tar.gz
llvm-f717d4795ac42bf51b52d9cbff70b7a85dbdd9bd.tar.bz2
[analyzer] Unroll the loop when it has a unsigned counter.
Summary: The original implementation in the `LoopUnrolling.cpp` didn't consider the case where the counter is unsigned. This case is only handled in `simpleCondition()`, but this is not enough, we also need to deal with the unsinged counter with the counter initialization. Since `IntegerLiteral` is `signed`, there is a `ImplicitCastExpr<IntegralCast>` in `unsigned counter = IntergerLiteral`. This patch add the `ignoringParenImpCasts()` in the `IntegerLiteral` matcher. Reviewers: szepet, a.sidorin, NoQ, george.karpenkov Reviewed By: szepet, george.karpenkov Subscribers: xazax.hun, rnkovacs, cfe-commits, MTC Differential Revision: https://reviews.llvm.org/D45086 llvm-svn: 328919
Diffstat (limited to 'llvm/lib/DebugInfo/CodeView/DebugCrossImpSubsection.cpp')
0 files changed, 0 insertions, 0 deletions