Skip to content

Commit 7f5655c

Browse files
authored
[clang][sema] Remove unused local SourceLocation (#151455)
getIntegerConstantExpr() doesn't force us to pass one, so don't.
1 parent ab9b23c commit 7f5655c

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

clang/lib/Sema/SemaChecking.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15893,9 +15893,7 @@ ExprResult Sema::BuiltinMatrixTranspose(CallExpr *TheCall,
1589315893
// Get and verify the matrix dimensions.
1589415894
static std::optional<unsigned>
1589515895
getAndVerifyMatrixDimension(Expr *Expr, StringRef Name, Sema &S) {
15896-
SourceLocation ErrorPos;
15897-
std::optional<llvm::APSInt> Value =
15898-
Expr->getIntegerConstantExpr(S.Context, &ErrorPos);
15896+
std::optional<llvm::APSInt> Value = Expr->getIntegerConstantExpr(S.Context);
1589915897
if (!Value) {
1590015898
S.Diag(Expr->getBeginLoc(), diag::err_builtin_matrix_scalar_unsigned_arg)
1590115899
<< Name;

0 commit comments

Comments
 (0)