forked from OSchip/llvm-project
Remove redundant !HasDependentValue check. NFCI.
Fixes cppcheck warning. llvm-svn: 373825
This commit is contained in:
parent
20692a0d3d
commit
0e82722f9a
|
@ -963,7 +963,7 @@ Sema::ActOnFinishSwitchStmt(SourceLocation SwitchLoc, Stmt *Switch,
|
|||
// condition is constant.
|
||||
llvm::APSInt ConstantCondValue;
|
||||
bool HasConstantCond = false;
|
||||
if (!HasDependentValue && !TheDefaultStmt) {
|
||||
if (!TheDefaultStmt) {
|
||||
Expr::EvalResult Result;
|
||||
HasConstantCond = CondExpr->EvaluateAsInt(Result, Context,
|
||||
Expr::SE_AllowSideEffects);
|
||||
|
|
Loading…
Reference in New Issue