diff options
| author | John McCall <rjmccall@apple.com> | 2012-01-05 00:13:19 +0000 |
|---|---|---|
| committer | John McCall <rjmccall@apple.com> | 2012-01-05 00:13:19 +0000 |
| commit | a59dc2f8f0afedb980a301359e9e621f6e604853 (patch) | |
| tree | e5bd1b225f0a66a7b996545613185e0f39f7749b /clang/lib/Sema/SemaDecl.cpp | |
| parent | fcc54a3b91c9b429e0384238fbe42f73fec757ca (diff) | |
| download | bcm5719-llvm-a59dc2f8f0afedb980a301359e9e621f6e604853.tar.gz bcm5719-llvm-a59dc2f8f0afedb980a301359e9e621f6e604853.zip | |
The value of a const weak variable is not an integer constant.
llvm-svn: 147575
Diffstat (limited to 'clang/lib/Sema/SemaDecl.cpp')
| -rw-r--r-- | clang/lib/Sema/SemaDecl.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Sema/SemaDecl.cpp b/clang/lib/Sema/SemaDecl.cpp index 43c9af58bc9..f82026f89f9 100644 --- a/clang/lib/Sema/SemaDecl.cpp +++ b/clang/lib/Sema/SemaDecl.cpp @@ -6045,7 +6045,7 @@ void Sema::AddInitializerToDecl(Decl *RealDecl, Expr *Init, // If the type changed, it means we had an incomplete type that was // completed by the initializer. For example: // int ary[] = { 1, 3, 5 }; - // "ary" transitions from a VariableArrayType to a ConstantArrayType. + // "ary" transitions from an IncompleteArrayType to a ConstantArrayType. if (!VDecl->isInvalidDecl() && (DclT != SavT)) { VDecl->setType(DclT); Init->setType(DclT.getNonReferenceType()); |

