]> granicus.if.org Git - clang/commitdiff
Adding a FIXME based on feedback from Richard Smith.
authorAaron Ballman <aaron@aaronballman.com>
Mon, 9 Sep 2013 23:40:31 +0000 (23:40 +0000)
committerAaron Ballman <aaron@aaronballman.com>
Mon, 9 Sep 2013 23:40:31 +0000 (23:40 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@190369 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Sema/SemaDeclAttr.cpp

index 0a35127980785eae232b96e032b6eec363444a1b..78640d62df42c8dbb4016ece7c296b11a8fa471f 100644 (file)
@@ -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();