summaryrefslogtreecommitdiffstats
path: root/clang/lib
diff options
context:
space:
mode:
authorAaron Ballman <aaron@aaronballman.com>2013-09-09 23:40:31 +0000
committerAaron Ballman <aaron@aaronballman.com>2013-09-09 23:40:31 +0000
commitfebff0cdfb53d3deab00df2c0042e21a0b534134 (patch)
treeb4b5acf22f6d7dcf3a7a55fa310027984e44e5bf /clang/lib
parent8ee40b7264ed0cce781c3868c9979663d32d3cbf (diff)
downloadbcm5719-llvm-febff0cdfb53d3deab00df2c0042e21a0b534134.tar.gz
bcm5719-llvm-febff0cdfb53d3deab00df2c0042e21a0b534134.zip
Adding a FIXME based on feedback from Richard Smith.
llvm-svn: 190369
Diffstat (limited to 'clang/lib')
-rw-r--r--clang/lib/Sema/SemaDeclAttr.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/clang/lib/Sema/SemaDeclAttr.cpp b/clang/lib/Sema/SemaDeclAttr.cpp
index 0a351279807..78640d62df4 100644
--- a/clang/lib/Sema/SemaDeclAttr.cpp
+++ b/clang/lib/Sema/SemaDeclAttr.cpp
@@ -1549,6 +1549,9 @@ static void handleWeakRefAttr(Sema &S, Decl *D, const AttributeList &Attr) {
// static ((alias ("y"), weakref)).
// Should we? How to check that weakref is before or after alias?
+ // FIXME: it would be good for us to keep the WeakRefAttr as-written instead
+ // of transforming it into an AliasAttr. The WeakRefAttr never uses the
+ // StringRef parameter it was given anyway.
if (Attr.isArgExpr(0)) {
Expr *Arg = Attr.getArgAsExpr(0);
Arg = Arg->IgnoreParenCasts();
OpenPOWER on IntegriCloud