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

Timm Baeder via cfe-commits cfe-commits at lists.llvm.org
Fri Aug 23 03:45:03 PDT 2024


https://github.com/tbaederr created https://github.com/llvm/llvm-project/pull/105811

None

>From f3e08fd46b07c83eaae700301c2e0c59743c0d19 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Timm=20B=C3=A4der?= <tbaeder at redhat.com>
Date: Fri, 23 Aug 2024 12:43:50 +0200
Subject: [PATCH] [clang][bytecode][NFC] Remove containsErrors check from
 visitInitializer

---
 clang/lib/AST/ByteCode/Compiler.cpp | 3 ---
 1 file changed, 3 deletions(-)

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