mirror of
https://github.com/RPCS3/llvm.git
synced 2025-01-30 23:33:57 +00:00
Use empty() instead of size().
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@53178 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
6b345ee9b2
commit
eccfb6a165
@ -59,7 +59,7 @@ ExecutionEngine *JIT::createJIT(ModuleProvider *MP, std::string *ErrorStr,
|
|||||||
|
|
||||||
// Package up features to be passed to target/subtarget
|
// Package up features to be passed to target/subtarget
|
||||||
std::string FeaturesStr;
|
std::string FeaturesStr;
|
||||||
if (MCPU.size() || MAttrs.size()) {
|
if (!MCPU.empty() || !MAttrs.empty()) {
|
||||||
SubtargetFeatures Features;
|
SubtargetFeatures Features;
|
||||||
Features.setCPU(MCPU);
|
Features.setCPU(MCPU);
|
||||||
for (unsigned i = 0; i != MAttrs.size(); ++i)
|
for (unsigned i = 0; i != MAttrs.size(); ++i)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user