diff options
author | Anders Carlsson <andersca@mac.com> | 2009-07-31 00:48:10 +0000 |
---|---|---|
committer | Anders Carlsson <andersca@mac.com> | 2009-07-31 00:48:10 +0000 |
commit | a26159261c3c18c0ea8ce413a4e2a69ecc80d49e (patch) | |
tree | 085a3f8189a1250e3780c414d7eeca36643662e8 /clang/lib/Sema/SemaDecl.cpp | |
parent | 218388fb8d87c037eb019f339faff711dd03eb6f (diff) | |
download | bcm5719-llvm-a26159261c3c18c0ea8ce413a4e2a69ecc80d49e.tar.gz bcm5719-llvm-a26159261c3c18c0ea8ce413a4e2a69ecc80d49e.zip |
Add a CastKind enum to CastExpr. Right now it's not used for much but it will be :)
llvm-svn: 77650
Diffstat (limited to 'clang/lib/Sema/SemaDecl.cpp')
-rw-r--r-- | clang/lib/Sema/SemaDecl.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/clang/lib/Sema/SemaDecl.cpp b/clang/lib/Sema/SemaDecl.cpp index 01875bbcdf2..4c310aaa072 100644 --- a/clang/lib/Sema/SemaDecl.cpp +++ b/clang/lib/Sema/SemaDecl.cpp @@ -5169,7 +5169,9 @@ void Sema::ActOnEnumBody(SourceLocation EnumLoc, SourceLocation LBraceLoc, // Adjust the Expr initializer and type. if (ECD->getInitExpr()) - ECD->setInitExpr(new (Context) ImplicitCastExpr(NewTy, ECD->getInitExpr(), + ECD->setInitExpr(new (Context) ImplicitCastExpr(NewTy, + CastExpr::CK_Unknown, + ECD->getInitExpr(), /*isLvalue=*/false)); if (getLangOptions().CPlusPlus) // C++ [dcl.enum]p4: Following the closing brace of an |