diff options
| author | Benjamin Kramer <benny.kra@googlemail.com> | 2016-07-21 13:37:53 +0000 |
|---|---|---|
| committer | Benjamin Kramer <benny.kra@googlemail.com> | 2016-07-21 13:37:53 +0000 |
| commit | 857754a1cb73b3b71aef847ba8d7e983d4d77e2e (patch) | |
| tree | a38891319c9da94e5940f9b8ac067246dac47789 /llvm/lib/Analysis/DemandedBits.cpp | |
| parent | eab3d367538030e2fd4feb0c94795e1bdb566451 (diff) | |
| download | bcm5719-llvm-857754a1cb73b3b71aef847ba8d7e983d4d77e2e.tar.gz bcm5719-llvm-857754a1cb73b3b71aef847ba8d7e983d4d77e2e.zip | |
[DenseMap] Add a C++17-style try_emplace method.
This provides an elegant pattern to solve the "construct if not in map
already" problem we have many times in LLVM. Without try_emplace we
either have to rely on a sentinel value (nullptr) or do two lookups.
llvm-svn: 276277
Diffstat (limited to 'llvm/lib/Analysis/DemandedBits.cpp')
0 files changed, 0 insertions, 0 deletions

