diff options
author | Eli Friedman <eli.friedman@gmail.com> | 2012-01-23 02:35:22 +0000 |
---|---|---|
committer | Eli Friedman <eli.friedman@gmail.com> | 2012-01-23 02:35:22 +0000 |
commit | 8c382060c9e6668a94f1485dd16f012cda526c5f (patch) | |
tree | 8507fd29444a1ec0fe03387af6facd168cb5100c /lib/Sema/SemaStmt.cpp | |
parent | 9366750a5a97c8aeae1df4898ea849b087865195 (diff) |
Make sure the AST correctly represents lvalue-to-rvalue conversions where appropriate.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@148673 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaStmt.cpp')
-rw-r--r-- | lib/Sema/SemaStmt.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Sema/SemaStmt.cpp b/lib/Sema/SemaStmt.cpp index b9b5b212c3..f741593736 100644 --- a/lib/Sema/SemaStmt.cpp +++ b/lib/Sema/SemaStmt.cpp @@ -495,7 +495,7 @@ Sema::ActOnStartOfSwitchStmt(SourceLocation SwitchLoc, Expr *Cond, if (!Cond) return StmtError(); - CondResult = CheckPlaceholderExpr(Cond); + CondResult = DefaultFunctionArrayLvalueConversion(Cond); if (CondResult.isInvalid()) return StmtError(); |