aboutsummaryrefslogtreecommitdiff
path: root/flang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorNikita Popov <npopov@redhat.com>2023-11-27 14:45:17 +0100
committerNikita Popov <npopov@redhat.com>2023-11-27 15:05:03 +0100
commit6778dbe50228ea47c586d7b9b60ef57a78915148 (patch)
tree5c18ca97c1c6dabe5fd3a55ec3111f5cdab8074f /flang/lib/Frontend/CompilerInvocation.cpp
parentadb130ccad67a18eb15506822e9cfcb1cb00cb45 (diff)
downloadllvm-6778dbe50228ea47c586d7b9b60ef57a78915148.zip
llvm-6778dbe50228ea47c586d7b9b60ef57a78915148.tar.gz
llvm-6778dbe50228ea47c586d7b9b60ef57a78915148.tar.bz2
[DomTree] Avoid duplicate hash lookup (NFC)
We're performing the same lookup twice here, just to access different fields. Only perform it once. Also prefer using find() over operator[], as we do not want to perform an insert if the node does not exist.
Diffstat (limited to 'flang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions