Skip to content

Commit 2ef30f7

Browse files
author
Cameron McInally
committed
-mattr processing does not need to be guarded now.
1 parent 54aa0fd commit 2ef30f7

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

llvm/tools/llvm-mc/llvm-mc.cpp

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -472,11 +472,8 @@ int main(int argc, char **argv) {
472472
}
473473

474474
// Handle features passed to target/subtarget.
475-
if (MAttrs.size()) {
476-
for (unsigned i = 0; i != MAttrs.size(); ++i)
477-
Features.AddFeature(MAttrs[i]);
478-
}
479-
475+
for (unsigned i = 0; i != MAttrs.size(); ++i)
476+
Features.AddFeature(MAttrs[i]);
480477
FeaturesStr = Features.getString();
481478

482479
std::unique_ptr<MCSubtargetInfo> STI(

0 commit comments

Comments
 (0)