[pkg-d-commits] [ldc] 107/149: Micro-optimization
Matthias Klumpp
mak at moszumanska.debian.org
Sun Apr 23 22:37:03 UTC 2017
This is an automated email from the git hooks/post-receive script.
mak pushed a commit to annotated tag v1.2.0
in repository ldc.
commit 99ea4103efc04ec58ca25a3ce75b41d1536cd898
Author: kinke <kinke at users.noreply.github.com>
Date: Sat Feb 11 23:31:02 2017 +0100
Micro-optimization
---
driver/cl_options.cpp | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/driver/cl_options.cpp b/driver/cl_options.cpp
index cf5101b..49e342b 100644
--- a/driver/cl_options.cpp
+++ b/driver/cl_options.cpp
@@ -596,8 +596,9 @@ void hideLLVMOptions() {
for (const auto name : hiddenOptions) {
// Check if option exists first for resilience against LLVM changes
// between versions.
- if (map.count(name)) {
- map[name]->setHiddenFlag(cl::Hidden);
+ auto it = map.find(name);
+ if (it != map.end()) {
+ it->second->setHiddenFlag(cl::Hidden);
}
}
}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-d/ldc.git
More information about the pkg-d-commits
mailing list