diff options
| author | Aaron Ballman <aaron@aaronballman.com> | 2013-09-09 23:40:31 +0000 |
|---|---|---|
| committer | Aaron Ballman <aaron@aaronballman.com> | 2013-09-09 23:40:31 +0000 |
| commit | febff0cdfb53d3deab00df2c0042e21a0b534134 (patch) | |
| tree | b4b5acf22f6d7dcf3a7a55fa310027984e44e5bf /clang/lib | |
| parent | 8ee40b7264ed0cce781c3868c9979663d32d3cbf (diff) | |
| download | bcm5719-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.cpp | 3 |
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(); |

