[clang] 2f144ac - [clang][bytecode][NFC] Remove containsErrors check from visitInitializer (#105811)

via cfe-commits cfe-commits at lists.llvm.org
Fri Aug 23 05:28:56 PDT 2024


Author: Timm Baeder
Date: 2024-08-23T14:28:52+02:00
New Revision: 2f144ac5a13dc39389e1850417f4ac766b1f1ada

URL: https://github.com/llvm/llvm-project/commit/2f144ac5a13dc39389e1850417f4ac766b1f1ada
DIFF: https://github.com/llvm/llvm-project/commit/2f144ac5a13dc39389e1850417f4ac766b1f1ada.diff

LOG: [clang][bytecode][NFC] Remove containsErrors check from visitInitializer (#105811)

Added: 
    

Modified: 
    clang/lib/AST/ByteCode/Compiler.cpp

Removed: 
    


################################################################################
diff  --git a/clang/lib/AST/ByteCode/Compiler.cpp b/clang/lib/AST/ByteCode/Compiler.cpp
index f11196d2b02707..0fc942a4f1bc4f 100644
--- a/clang/lib/AST/ByteCode/Compiler.cpp
+++ b/clang/lib/AST/ByteCode/Compiler.cpp
@@ -3301,9 +3301,6 @@ template <class Emitter>
 bool Compiler<Emitter>::visitInitializer(const Expr *E) {
   assert(!classify(E->getType()));
 
-  if (E->containsErrors())
-    return this->emitError(E);
-
   if (!this->checkLiteralType(E))
     return false;
 


        


More information about the cfe-commits mailing list