diff options
Diffstat (limited to 'clang/Sema/SemaStmt.cpp')
-rw-r--r-- | clang/Sema/SemaStmt.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/clang/Sema/SemaStmt.cpp b/clang/Sema/SemaStmt.cpp index 1c847717621..fe62c8ab069 100644 --- a/clang/Sema/SemaStmt.cpp +++ b/clang/Sema/SemaStmt.cpp @@ -307,8 +307,7 @@ Sema::ActOnFinishSwitchStmt(SourceLocation SwitchLoc, StmtTy *Switch, // Get the bitwidth of the switched-on value before promotions. We must // convert the integer case values to this width before comparison. - unsigned CondWidth = - static_cast<unsigned>(Context.getTypeSize(CondType, SwitchLoc)); + unsigned CondWidth = static_cast<unsigned>(Context.getTypeSize(CondType)); bool CondIsSigned = CondType->isSignedIntegerType(); // Accumulate all of the case values in a vector so that we can sort them |