aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/StackProtector.cpp
diff options
context:
space:
mode:
authorJohannes Doerfert <johannes@jdoerfert.de>2020-04-15 02:14:56 -0500
committerJohannes Doerfert <johannes@jdoerfert.de>2020-04-16 02:32:31 -0500
commitd18bb247492face84966f6c1c32e479e5e026f1d (patch)
tree312a5f01ed14539ac0d74fc427bf93e13e526502 /llvm/lib/CodeGen/StackProtector.cpp
parente5d666d76837f7b808452b24dce646bf18ee6e40 (diff)
downloadllvm-d18bb247492face84966f6c1c32e479e5e026f1d.zip
llvm-d18bb247492face84966f6c1c32e479e5e026f1d.tar.gz
llvm-d18bb247492face84966f6c1c32e479e5e026f1d.tar.bz2
[Attributor][NFC] Do not create temporary maps during lookup
The AAMap.lookup() call created a temporary value if the key was not present. Since the value was another map it was not free to create it. Instead of a lookup we now use find and compare the result against the end iterator explicitly. The result is the same but we never need to create a temporary map.
Diffstat (limited to 'llvm/lib/CodeGen/StackProtector.cpp')
0 files changed, 0 insertions, 0 deletions