]> granicus.if.org Git - clang/commit
When producing error messages for always_inline functions with the
authorEric Christopher <echristo@gmail.com>
Mon, 16 Nov 2015 18:29:59 +0000 (18:29 +0000)
committerEric Christopher <echristo@gmail.com>
Mon, 16 Nov 2015 18:29:59 +0000 (18:29 +0000)
commitf9222288accd7d0b02a371acb1ea68d29463dab1
treec142d2ece6f777a22b3c11259e7e6418eab1a984
parentb0be65cb39c840929a386df6478f8a8e316d44ef
When producing error messages for always_inline functions with the
target attribute, don't include "negative" subtarget features in the
list of required features. Builtins are positive by default so don't
need this change, but we pull the default list of features from the
command line and so need to make sure that we only include features
that are turned on for code generation in our error.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@253242 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CodeGenFunction.cpp
test/CodeGen/target-features-no-error.c [new file with mode: 0644]