aboutsummaryrefslogtreecommitdiff
path: root/lib/Sema/SemaInit.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2009-03-28 00:41:23 +0000
committerDouglas Gregor <dgregor@apple.com>2009-03-28 00:41:23 +0000
commiteeae8f072748affce25ab4064982626361293390 (patch)
tree8b63c859fe464f62acca8b40e8b29ad56492c324 /lib/Sema/SemaInit.cpp
parentf2390367a0771b9118dc5c1b4b832ae84f2be897 (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/Sema/SemaInit.cpp')
-rw-r--r--lib/Sema/SemaInit.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Sema/SemaInit.cpp b/lib/Sema/SemaInit.cpp
index 600dc34351..fbf3ae2a78 100644
--- a/lib/Sema/SemaInit.cpp
+++ b/lib/Sema/SemaInit.cpp
@@ -1548,7 +1548,7 @@ CheckArrayDesignatorExpr(Sema &Self, Expr *Index, llvm::APSInt &Value) {
Sema::OwningExprResult Sema::ActOnDesignatedInitializer(Designation &Desig,
SourceLocation Loc,
- bool UsedColonSyntax,
+ bool GNUSyntax,
OwningExprResult Init) {
typedef DesignatedInitExpr::Designator ASTDesignator;
@@ -1622,7 +1622,7 @@ Sema::OwningExprResult Sema::ActOnDesignatedInitializer(Designation &Desig,
DesignatedInitExpr *DIE
= DesignatedInitExpr::Create(Context, &Designators[0], Designators.size(),
&InitExpressions[0], InitExpressions.size(),
- Loc, UsedColonSyntax,
+ Loc, GNUSyntax,
static_cast<Expr *>(Init.release()));
return Owned(DIE);
}