diff options
author | Charles Davis <cdavis@mines.edu> | 2010-02-17 00:44:47 +0000 |
---|---|---|
committer | Charles Davis <cdavis@mines.edu> | 2010-02-17 00:44:47 +0000 |
commit | 61170a19e3328162302fc28a5d1dfb6ba2208679 (patch) | |
tree | 7232be43edef5bbb4646dd624325d8cdd355b4bf /clang/lib/Sema/TargetAttributesSema.cpp | |
parent | 13ac3b21395585156281251ade6cde2fd8e3e461 (diff) | |
download | bcm5719-llvm-61170a19e3328162302fc28a5d1dfb6ba2208679.tar.gz bcm5719-llvm-61170a19e3328162302fc28a5d1dfb6ba2208679.zip |
Revert r95939, as suggested by Alexandre Julliard from the Wine project (and
our own Chris Lattner).
llvm-svn: 96431
Diffstat (limited to 'clang/lib/Sema/TargetAttributesSema.cpp')
-rw-r--r-- | clang/lib/Sema/TargetAttributesSema.cpp | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/clang/lib/Sema/TargetAttributesSema.cpp b/clang/lib/Sema/TargetAttributesSema.cpp index 597a0276966..76cff1f3151 100644 --- a/clang/lib/Sema/TargetAttributesSema.cpp +++ b/clang/lib/Sema/TargetAttributesSema.cpp @@ -79,14 +79,12 @@ static void HandleX86ForceAlignArgPointerAttr(Decl *D, return; } - // If we try to apply it to a function pointer, warn. This is a special - // instance of the warn_attribute_ignored warning that can be turned - // off with -Wno-force-align-arg-pointer. + // If we try to apply it to a function pointer, don't warn, but don't + // do anything, either. It doesn't matter anyway, because there's nothing + // special about calling a force_align_arg_pointer function. ValueDecl* VD = dyn_cast<ValueDecl>(D); - if (VD && VD->getType()->isFunctionPointerType()) { - S.Diag(Attr.getLoc(), diag::warn_faap_attribute_ignored); + if (VD && VD->getType()->isFunctionPointerType()) return; - } // Attribute can only be applied to function types. if (!isa<FunctionDecl>(D)) { S.Diag(Attr.getLoc(), diag::warn_attribute_wrong_decl_type) |