[all-commits] [llvm/llvm-project] 0213ad: [NFC] Fix 'target' condition in checkTargetFeatures
Erich Keane via All-commits
all-commits at lists.llvm.org
Mon Nov 18 13:44:04 PST 2019
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: 0213adde218530bc31e5c4e50b49704c6bb2f2e9
https://github.com/llvm/llvm-project/commit/0213adde218530bc31e5c4e50b49704c6bb2f2e9
Author: Erich Keane <erich.keane at intel.com>
Date: 2019-11-18 (Mon, 18 Nov 2019)
Changed paths:
M clang/lib/CodeGen/CodeGenFunction.cpp
Log Message:
-----------
[NFC] Fix 'target' condition in checkTargetFeatures
checkTargetFeatures was incorrectly checking for cpu_specific instead of
just 'target'. While this function was never called in that situation,
it seemed correct to fix the condition. Additionally, multiversion
functions can never be always_inline, but if any function accidentially
ended up here we shouldn't diagnose.
Note that the adding of target-features to the list is unnecessary since
the getFunctionFeatureMap actually considers attribute target,
however adding it results in significantly better error messages by
putting the 'target' features first (and thus first to fail).
Otherwise, the error message would be the first feature 'implied' by the
target attribute, and not necessarily the feature listed in the
attribute itself.
More information about the All-commits
mailing list