[cfe-commits] r39575 - /cfe/cfe/trunk/Sema/SemaStmt.cpp
clattner at cs.uiuc.edu
clattner at cs.uiuc.edu
Wed Jul 11 09:45:47 PDT 2007
Author: clattner
Date: Wed Jul 11 11:45:47 2007
New Revision: 39575
URL: http://llvm.org/viewvc/llvm-project?rev=39575&view=rev
Log:
eliminate unneeded cast
Modified:
cfe/cfe/trunk/Sema/SemaStmt.cpp
Modified: cfe/cfe/trunk/Sema/SemaStmt.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/cfe/trunk/Sema/SemaStmt.cpp?rev=39575&r1=39574&r2=39575&view=diff
==============================================================================
--- cfe/cfe/trunk/Sema/SemaStmt.cpp (original)
+++ cfe/cfe/trunk/Sema/SemaStmt.cpp Wed Jul 11 11:45:47 2007
@@ -50,9 +50,10 @@
if (!LHSVal->isIntegerConstantExpr(&ExpLoc))
return Diag(ExpLoc, diag::err_case_label_not_integer_constant_expr,
LHSVal->getSourceRange());
- }
- return new CaseStmt((Expr*)LHSVal, (Expr*)RHSVal, (Stmt*)SubStmt);
+ // FIXME: SEMA for RHS of case range.
+
+ return new CaseStmt(LHSVal, (Expr*)RHSVal, (Stmt*)SubStmt);
}
Action::StmtResult
More information about the cfe-commits
mailing list