diff options
author | Tobias Grosser <tobias@grosser.es> | 2015-10-07 13:19:06 +0000 |
---|---|---|
committer | Tobias Grosser <tobias@grosser.es> | 2015-10-07 13:19:06 +0000 |
commit | d79cb0378b14a840e7a0cd43e0e4798bf82b20ff (patch) | |
tree | 6a839e08c2a6d6f7694ecfeb02676d45e1c7bc7e /lldb/source/Commands/CommandObjectFrame.cpp | |
parent | 73725b8ba591027dc12a538c40b87640f6af273a (diff) | |
download | llvm-d79cb0378b14a840e7a0cd43e0e4798bf82b20ff.zip llvm-d79cb0378b14a840e7a0cd43e0e4798bf82b20ff.tar.gz llvm-d79cb0378b14a840e7a0cd43e0e4798bf82b20ff.tar.bz2 |
IRBuilder: Ensure we do not add empty map elements
Do not use "Map[Key] == nullptr" to check if a Key is in the map, but use
"Map.find(Key) == Map.end()". Map[Key] always adds Key into the map, a
side-effect we do not want.
Found by inspection. This is hard to test outside of a targetted unit test,
which seems too much overhead for this individual issue.
llvm-svn: 249544
Diffstat (limited to 'lldb/source/Commands/CommandObjectFrame.cpp')
0 files changed, 0 insertions, 0 deletions