[clang] remove dead code after 2a1332245fc
authorNico Weber <thakis@chromium.org>
Wed, 28 Apr 2021 14:21:31 +0000 (10:21 -0400)
committerNico Weber <thakis@chromium.org>
Wed, 28 Apr 2021 14:27:31 +0000 (10:27 -0400)
commit5d493291bd010bbba0fdc1e7da0922fd214fdffd
tree1917c1d61a87ddc6eaa13fc0ccc7e02d29989042
parent899352c7b4844541df1b2f9eaa769d79231e9391
[clang] remove dead code after 2a1332245fc

Commit 2a1332245fc extracted this code to a new function checkSectionName() and
added a call to it, but didn't remove the original code. The original code
is dead since the checkSectionName() early return would fire when it would
trigger. (If it weren't dead, it'd make clang crash since
err_attribute_section_invalid_for_target now takes two args instead of just the
one that's passed.)

No behavior change.

Differential Revision: https://reviews.llvm.org/D101457
clang/lib/Sema/SemaDeclAttr.cpp