]> granicus.if.org Git - llvm/commit
Fix map insertion that is elided in release build.
authorDavid L. Jones <dlj@google.com>
Fri, 21 Oct 2016 23:30:39 +0000 (23:30 +0000)
committerDavid L. Jones <dlj@google.com>
Fri, 21 Oct 2016 23:30:39 +0000 (23:30 +0000)
commitf64117ce6ec8fbd96a58d2e2aafffc79840d835c
tree84d24d56f3c1e34aa1acbff033ff6b2579697cea
parent1b0519f03d960fd8bcc90ce3744fda2d2cb7d4df
Fix map insertion that is elided in release build.

The assert() macro doesn't actually execute its body in Release builds, so using
it to check cache invariants requires that the insertion be outside of the
assert() statement. This change does that, and also makes sure to return the
actual map contents.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@284898 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Analysis/ScalarEvolutionExpressions.h