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 | 5c7c9cb6786d03108ae41af9ddb4d5a67f5d3086 (patch) | |
| tree | 3cc512b609fb6f6c1feeb6799345e62cd3322fb2 /clang/lib/Sema/SemaInit.cpp | |
| parent | a94d139a1f1bd3d930d0af649e2276ab1822ea3a (diff) | |
| download | bcm5719-llvm-5c7c9cb6786d03108ae41af9ddb4d5a67f5d3086.tar.gz bcm5719-llvm-5c7c9cb6786d03108ae41af9ddb4d5a67f5d3086.zip | |
Make our diagnostics about the obsolete GNU designated-initializer
syntax into extension warnings, and provide code-modification hints
showing how to fix the problem.
llvm-svn: 67885
Diffstat (limited to 'clang/lib/Sema/SemaInit.cpp')
| -rw-r--r-- | clang/lib/Sema/SemaInit.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/Sema/SemaInit.cpp b/clang/lib/Sema/SemaInit.cpp index 600dc343517..fbf3ae2a785 100644 --- a/clang/lib/Sema/SemaInit.cpp +++ b/clang/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); } |

