diff options
author | Johannes Doerfert <johannes@jdoerfert.de> | 2020-04-15 02:14:56 -0500 |
---|---|---|
committer | Johannes Doerfert <johannes@jdoerfert.de> | 2020-04-16 02:32:31 -0500 |
commit | d18bb247492face84966f6c1c32e479e5e026f1d (patch) | |
tree | 312a5f01ed14539ac0d74fc427bf93e13e526502 /llvm/lib/Support/DataExtractor.cpp | |
parent | e5d666d76837f7b808452b24dce646bf18ee6e40 (diff) | |
download | llvm-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/Support/DataExtractor.cpp')
0 files changed, 0 insertions, 0 deletions