diff options
author | Douglas Gregor <dgregor@apple.com> | 2009-03-28 00:41:23 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2009-03-28 00:41:23 +0000 |
commit | eeae8f072748affce25ab4064982626361293390 (patch) | |
tree | 8b63c859fe464f62acca8b40e8b29ad56492c324 /lib/AST/Expr.cpp | |
parent | f2390367a0771b9118dc5c1b4b832ae84f2be897 (diff) |
Make our diagnostics about the obsolete GNU designated-initializer
syntax into extension warnings, and provide code-modification hints
showing how to fix the problem.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@67885 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/AST/Expr.cpp')
-rw-r--r-- | lib/AST/Expr.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/AST/Expr.cpp b/lib/AST/Expr.cpp index 92310902e2..08ab5440b1 100644 --- a/lib/AST/Expr.cpp +++ b/lib/AST/Expr.cpp @@ -1534,7 +1534,7 @@ SourceRange DesignatedInitExpr::getSourceRange() const { Designator &First = *const_cast<DesignatedInitExpr*>(this)->designators_begin(); if (First.isFieldDesignator()) { - if (UsesColonSyntax) + if (GNUSyntax) StartLoc = SourceLocation::getFromRawEncoding(First.Field.FieldLoc); else StartLoc = SourceLocation::getFromRawEncoding(First.Field.DotLoc); |