diff options
author | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2011-09-13 16:05:58 +0000 |
---|---|---|
committer | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2011-09-13 16:05:58 +0000 |
commit | 309b4c49e44b3878774b15c9d11ca7d831e2905f (patch) | |
tree | e3e885633dbc123b7e528a49770922fc673909b7 /clang/lib/Sema/TargetAttributesSema.cpp | |
parent | 635a9b4dcf589054885186dc30623e4d37f361b2 (diff) | |
download | bcm5719-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.cpp | 3 |
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) { |