[llvm] r189971 - Small simplification given that insert of an empty range is a nop.
Rafael Espindola
rafael.espindola at gmail.com
Wed Sep 4 11:53:21 PDT 2013
Author: rafael
Date: Wed Sep 4 13:53:21 2013
New Revision: 189971
URL: http://llvm.org/viewvc/llvm-project?rev=189971&view=rev
Log:
Small simplification given that insert of an empty range is a nop.
Modified:
llvm/trunk/lib/Transforms/IPO/Internalize.cpp
Modified: llvm/trunk/lib/Transforms/IPO/Internalize.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/IPO/Internalize.cpp?rev=189971&r1=189970&r2=189971&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/IPO/Internalize.cpp (original)
+++ llvm/trunk/lib/Transforms/IPO/Internalize.cpp Wed Sep 4 13:53:21 2013
@@ -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)
More information about the llvm-commits
mailing list