Author: Timm Baeder
Date: 2026-08-20T17:58:27+02:00
New Revision: 7e7cba213c3d238aa8992603596f88fe8f7d0fbf

URL: 
https://github.com/llvm/llvm-project/commit/7e7cba213c3d238aa8992603596f88fe8f7d0fbf
DIFF: 
https://github.com/llvm/llvm-project/commit/7e7cba213c3d238aa8992603596f88fe8f7d0fbf.diff

LOG: [clang][bytecode][NFC] Don't check enum completeness in canClassify() 
(#217647)

This is not important here, only later in classify().

Added: 
    

Modified: 
    clang/lib/AST/ByteCode/Context.h

Removed: 
    


################################################################################
diff  --git a/clang/lib/AST/ByteCode/Context.h 
b/clang/lib/AST/ByteCode/Context.h
index 47821a3e3a7f3..eaace87ceae9d 100644
--- a/clang/lib/AST/ByteCode/Context.h
+++ b/clang/lib/AST/ByteCode/Context.h
@@ -141,8 +141,8 @@ class Context final {
         T->isVectorType())
       return false;
 
-    if (const auto *D = T->getAsEnumDecl())
-      return D->isComplete();
+    if (T->isEnumeralType())
+      return true;
 
     return classify(T) != std::nullopt;
   }


        
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to