Skip to content

Commit f75dce4

Browse files
authored
[CIR][NFC] Fix an unused variable warning (#135046)
This fixes a warning where a variable assigned in a 'if' statement wasn't referenced again.
1 parent e10f67a commit f75dce4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/lib/CIR/CodeGen/CIRGenExpr.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ Address CIRGenFunction::emitPointerWithAlignment(const Expr *expr) {
3636

3737
// Casts:
3838
if (auto const *ce = dyn_cast<CastExpr>(expr)) {
39-
if (auto const *ece = dyn_cast<ExplicitCastExpr>(ce)) {
39+
if (isa<ExplicitCastExpr>(ce)) {
4040
cgm.errorNYI(expr->getSourceRange(),
4141
"emitPointerWithAlignment: explicit cast");
4242
return Address::invalid();

0 commit comments

Comments
 (0)