summaryrefslogtreecommitdiff
path: root/lib/CodeGen/CodeGenFunction.cpp
diff options
context:
space:
mode:
authorDavid Blaikie <dblaikie@gmail.com>2014-05-05 21:21:39 +0000
committerDavid Blaikie <dblaikie@gmail.com>2014-05-05 21:21:39 +0000
commit6197f101bd0d753866f39268fb1f63e03eadce6f (patch)
treeb122de80096b411aef28262c0d4762b257464ad1 /lib/CodeGen/CodeGenFunction.cpp
parent192d781cd5d580756692f997bc5592f8a5962f7c (diff)
downloadclang-6197f101bd0d753866f39268fb1f63e03eadce6f.tar.gz
clang-6197f101bd0d753866f39268fb1f63e03eadce6f.tar.bz2
clang-6197f101bd0d753866f39268fb1f63e03eadce6f.tar.xz
Simplify replacement map by avoiding duplicate values and ensuring the values it does contain are necessary.
Items were being redundantly added to the replacement map (both when the declaration was created, and then again when its definition was constructed) which caused extra handling to be required when walking the map (as elements may've already been replaced due to prior entries). By avoiding adding the duplicates, the checks in the replacement handling can be replaced with assertions. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@208000 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CodeGenFunction.cpp')
0 files changed, 0 insertions, 0 deletions