Author: Chris Bieneman
Date: 2025-02-15T14:19:31-06:00
New Revision: 50581ef1ee45815b9230043319de5ae93680d4ad

URL: 
https://github.com/llvm/llvm-project/commit/50581ef1ee45815b9230043319de5ae93680d4ad
DIFF: 
https://github.com/llvm/llvm-project/commit/50581ef1ee45815b9230043319de5ae93680d4ad.diff

LOG: [NFC] Fix warning in recent commit

Added: 
    

Modified: 
    clang/lib/Sema/SemaHLSL.cpp

Removed: 
    


################################################################################
diff  --git a/clang/lib/Sema/SemaHLSL.cpp b/clang/lib/Sema/SemaHLSL.cpp
index be45761552290..957c3a0888438 100644
--- a/clang/lib/Sema/SemaHLSL.cpp
+++ b/clang/lib/Sema/SemaHLSL.cpp
@@ -3223,7 +3223,7 @@ bool SemaHLSL::TransformInitList(const InitializedEntity 
&Entity,
     Expr *E = Init->getInit(I);
     if (E->HasSideEffects(Ctx)) {
       QualType Ty = E->getType();
-      if (auto *RTy = Ty->getAs<RecordType>())
+      if (Ty->isRecordType())
         E = new (Ctx) MaterializeTemporaryExpr(Ty, E, E->isLValue());
       E = new (Ctx) OpaqueValueExpr(E->getBeginLoc(), Ty, E->getValueKind(),
                                     E->getObjectKind(), E);


        
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to