diff options
| author | John McCall <rjmccall@apple.com> | 2010-08-25 11:45:40 +0000 |
|---|---|---|
| committer | John McCall <rjmccall@apple.com> | 2010-08-25 11:45:40 +0000 |
| commit | e302792b6155bb195f88610a1ebde38343cf402e (patch) | |
| tree | a3dc32bec0d52b683d794838266f40a1e43cffd7 /clang/lib/Sema/SemaDecl.cpp | |
| parent | 1bcddcaab3d1ad8c24e1771ac58a480aeac4230d (diff) | |
| download | bcm5719-llvm-e302792b6155bb195f88610a1ebde38343cf402e.tar.gz bcm5719-llvm-e302792b6155bb195f88610a1ebde38343cf402e.zip | |
GCC didn't care for my attempt at API compatibility, so brute-force everything
to the new constants.
llvm-svn: 112047
Diffstat (limited to 'clang/lib/Sema/SemaDecl.cpp')
| -rw-r--r-- | clang/lib/Sema/SemaDecl.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/clang/lib/Sema/SemaDecl.cpp b/clang/lib/Sema/SemaDecl.cpp index 9b6680f312d..242a4df86d3 100644 --- a/clang/lib/Sema/SemaDecl.cpp +++ b/clang/lib/Sema/SemaDecl.cpp @@ -4238,7 +4238,7 @@ void Sema::AddInitializerToDecl(Decl *RealDecl, Expr *Init, bool DirectInit) { << Init->getSourceRange(); VDecl->setInvalidDecl(); } else if (!VDecl->getType()->isDependentType()) - ImpCastExprToType(Init, VDecl->getType(), CastExpr::CK_IntegralCast); + ImpCastExprToType(Init, VDecl->getType(), CK_IntegralCast); } } } else if (VDecl->isFileVarDecl()) { @@ -6751,7 +6751,7 @@ EnumConstantDecl *Sema::CheckEnumConstant(EnumDecl *Enum, << (EnumVal.isUnsigned() || EnumVal.isNonNegative()); else if (!Context.hasSameType(Val->getType(), Context.IntTy)) { // Force the type of the expression to 'int'. - ImpCastExprToType(Val, Context.IntTy, CastExpr::CK_IntegralCast); + ImpCastExprToType(Val, Context.IntTy, CK_IntegralCast); } } @@ -7082,7 +7082,7 @@ void Sema::ActOnEnumBody(SourceLocation EnumLoc, SourceLocation LBraceLoc, // Adjust the Expr initializer and type. if (ECD->getInitExpr()) ECD->setInitExpr(ImplicitCastExpr::Create(Context, NewTy, - CastExpr::CK_IntegralCast, + CK_IntegralCast, ECD->getInitExpr(), /*base paths*/ 0, VK_RValue)); |

