summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen
diff options
context:
space:
mode:
authorEric Christopher <echristo@gmail.com>2015-07-06 23:52:01 +0000
committerEric Christopher <echristo@gmail.com>2015-07-06 23:52:01 +0000
commitd151addc00a3016e93014aa0896ed9d863fe75a4 (patch)
tree09564cfab24b13b0e7eba234eec0dccf952dbce7 /clang/lib/CodeGen
parentaf4d608d13eb810752b89cb6e5af2c211d8e63da (diff)
downloadbcm5719-llvm-d151addc00a3016e93014aa0896ed9d863fe75a4.tar.gz
bcm5719-llvm-d151addc00a3016e93014aa0896ed9d863fe75a4.zip
Update target attribute support for post-commit feedback.
Use const auto rather than duplicating the type name and fix the error message when the attribute is applied to an incorrect entity. llvm-svn: 241526
Diffstat (limited to 'clang/lib/CodeGen')
-rw-r--r--clang/lib/CodeGen/CGCall.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CGCall.cpp b/clang/lib/CodeGen/CGCall.cpp
index ac014d3220a..6192244e426 100644
--- a/clang/lib/CodeGen/CGCall.cpp
+++ b/clang/lib/CodeGen/CGCall.cpp
@@ -1506,7 +1506,7 @@ void CodeGenModule::ConstructAttributeList(const CGFunctionInfo &FI,
const FunctionDecl *FD = dyn_cast_or_null<FunctionDecl>(TargetDecl);
if (FD) {
- if (const TargetAttr *TD = FD->getAttr<TargetAttr>()) {
+ if (const auto *TD = FD->getAttr<TargetAttr>()) {
StringRef FeaturesStr = TD->getFeatures();
SmallVector<StringRef, 1> AttrFeatures;
FeaturesStr.split(AttrFeatures, ",");
OpenPOWER on IntegriCloud