diff options
author | John McCall <rjmccall@apple.com> | 2010-08-25 10:28:54 +0000 |
---|---|---|
committer | John McCall <rjmccall@apple.com> | 2010-08-25 10:28:54 +0000 |
commit | 5baba9d98364a3525d6afa15a04cdad82fd6dd30 (patch) | |
tree | fa5f362a24e847c0853cb792239948880e89f96c /lib/Sema/SemaChecking.cpp | |
parent | f869d205c5985121b8134a9174ed8d3b136637b5 (diff) |
More incremental progress towards not including Expr.h in Sema.h.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@112044 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaChecking.cpp')
-rw-r--r-- | lib/Sema/SemaChecking.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Sema/SemaChecking.cpp b/lib/Sema/SemaChecking.cpp index 7ea96f4014..271a02dc11 100644 --- a/lib/Sema/SemaChecking.cpp +++ b/lib/Sema/SemaChecking.cpp @@ -555,7 +555,7 @@ Sema::SemaBuiltinAtomicOverloaded(ExprResult TheCallResult) { // pass in 42. The 42 gets converted to char. This is even more strange // for things like 45.123 -> char, etc. // FIXME: Do this check. - ImpCastExprToType(Arg, ValType, Kind, ImplicitCastExpr::RValue, &BasePath); + ImpCastExprToType(Arg, ValType, Kind, VK_RValue, &BasePath); TheCall->setArg(i+1, Arg); } @@ -1966,7 +1966,7 @@ do { switch (E->getStmtClass()) { case Stmt::ImplicitCastExprClass: { ImplicitCastExpr *IE = cast<ImplicitCastExpr>(E); - if (IE->getCategory() == ImplicitCastExpr::LValue) { + if (IE->getValueKind() == VK_LValue) { E = IE->getSubExpr(); continue; } |