summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/TargetAttributesSema.cpp
diff options
context:
space:
mode:
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>2011-09-13 16:05:58 +0000
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>2011-09-13 16:05:58 +0000
commit309b4c49e44b3878774b15c9d11ca7d831e2905f (patch)
treee3e885633dbc123b7e528a49770922fc673909b7 /clang/lib/Sema/TargetAttributesSema.cpp
parent635a9b4dcf589054885186dc30623e4d37f361b2 (diff)
downloadbcm5719-llvm-309b4c49e44b3878774b15c9d11ca7d831e2905f.tar.gz
bcm5719-llvm-309b4c49e44b3878774b15c9d11ca7d831e2905f.zip
Keep the source range of attributes. Depends on a llvm tablegen commit.
llvm-svn: 139600
Diffstat (limited to 'clang/lib/Sema/TargetAttributesSema.cpp')
-rw-r--r--clang/lib/Sema/TargetAttributesSema.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/lib/Sema/TargetAttributesSema.cpp b/clang/lib/Sema/TargetAttributesSema.cpp
index 37fafd2be5b..0560a8b78d5 100644
--- a/clang/lib/Sema/TargetAttributesSema.cpp
+++ b/clang/lib/Sema/TargetAttributesSema.cpp
@@ -147,7 +147,8 @@ static void HandleX86ForceAlignArgPointerAttr(Decl *D,
return;
}
- D->addAttr(::new (S.Context) X86ForceAlignArgPointerAttr(Attr.getLoc(), S.Context));
+ D->addAttr(::new (S.Context) X86ForceAlignArgPointerAttr(Attr.getRange(),
+ S.Context));
}
static void HandleDLLImportAttr(Decl *D, const AttributeList &Attr, Sema &S) {
OpenPOWER on IntegriCloud