[all-commits] [llvm/llvm-project] 842705: [clang][ARM] When handling multiple -mimplicit-it ...

David Spickett via All-commits all-commits at lists.llvm.org
Tue May 25 07:53:36 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 8427053f81922b0665a1ad3f561c09f8c0b8dd30
      https://github.com/llvm/llvm-project/commit/8427053f81922b0665a1ad3f561c09f8c0b8dd30
  Author: David Spickett <david.spickett at linaro.org>
  Date:   2021-05-25 (Tue, 25 May 2021)

  Changed paths:
    M clang/lib/Driver/ToolChains/Clang.cpp
    M clang/test/Driver/arm-target-as-mimplicit-it.s

  Log Message:
  -----------
  [clang][ARM] When handling multiple -mimplicit-it mark all as used

Since 4468e5b8999291cc84b78f33f207dcd0e58146bc clang will prefer
the last one it finds of "-mimplicit-it" or "-Wa,-mimplicit-it".

Due to a mistake in that patch the compiler argument "-mimplicit-it"
was never marked as used, even if it was the last one and was passed
to llvm.

Move the Claim call back to the start of the loop and update
the testing to check we don't get any unused argument warnings.

Reviewed By: mstorsjo

Differential Revision: https://reviews.llvm.org/D103086




More information about the All-commits mailing list