Skip to content

Commit 50581ef

Browse files
committed
[NFC] Fix warning in recent commit
1 parent ad948fa commit 50581ef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/lib/Sema/SemaHLSL.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3223,7 +3223,7 @@ bool SemaHLSL::TransformInitList(const InitializedEntity &Entity,
32233223
Expr *E = Init->getInit(I);
32243224
if (E->HasSideEffects(Ctx)) {
32253225
QualType Ty = E->getType();
3226-
if (auto *RTy = Ty->getAs<RecordType>())
3226+
if (Ty->isRecordType())
32273227
E = new (Ctx) MaterializeTemporaryExpr(Ty, E, E->isLValue());
32283228
E = new (Ctx) OpaqueValueExpr(E->getBeginLoc(), Ty, E->getValueKind(),
32293229
E->getObjectKind(), E);

0 commit comments

Comments
 (0)