[all-commits] [llvm/llvm-project] 5d4932: [clang] remove dead code after 2a1332245fc

Nico Weber via All-commits all-commits at lists.llvm.org
Wed Apr 28 07:28:07 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 5d493291bd010bbba0fdc1e7da0922fd214fdffd
      https://github.com/llvm/llvm-project/commit/5d493291bd010bbba0fdc1e7da0922fd214fdffd
  Author: Nico Weber <thakis at chromium.org>
  Date:   2021-04-28 (Wed, 28 Apr 2021)

  Changed paths:
    M clang/lib/Sema/SemaDeclAttr.cpp

  Log Message:
  -----------
  [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




More information about the All-commits mailing list