diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2013-09-04 18:53:21 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2013-09-04 18:53:21 +0000 |
commit | 1d7df349ab7fa051ffe88589b06a1aa514f84a00 (patch) | |
tree | ea63c0e6e76492de5312fdd9f11ba4111c070a3e /lib/Transforms/IPO | |
parent | ca7b43d01d963deafcc704389935f0f77dcfab0a (diff) | |
download | external_llvm-1d7df349ab7fa051ffe88589b06a1aa514f84a00.zip external_llvm-1d7df349ab7fa051ffe88589b06a1aa514f84a00.tar.gz external_llvm-1d7df349ab7fa051ffe88589b06a1aa514f84a00.tar.bz2 |
Small simplification given that insert of an empty range is a nop.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@189971 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/IPO')
-rw-r--r-- | lib/Transforms/IPO/Internalize.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/Transforms/IPO/Internalize.cpp b/lib/Transforms/IPO/Internalize.cpp index cd20a1d..ff56654 100644 --- a/lib/Transforms/IPO/Internalize.cpp +++ b/lib/Transforms/IPO/Internalize.cpp @@ -70,8 +70,7 @@ InternalizePass::InternalizePass() initializeInternalizePassPass(*PassRegistry::getPassRegistry()); if (!APIFile.empty()) // If a filename is specified, use it. LoadFile(APIFile.c_str()); - if (!APIList.empty()) // If a list is specified, use it as well. - ExternalNames.insert(APIList.begin(), APIList.end()); + ExternalNames.insert(APIList.begin(), APIList.end()); } InternalizePass::InternalizePass(ArrayRef<const char *> exportList) |