[clang] [clang][bytecode][NFC] Remove containsErrors() check from delegate (PR #105804)
Timm Baeder via cfe-commits
cfe-commits at lists.llvm.org
Fri Aug 23 02:06:55 PDT 2024
https://github.com/tbaederr created https://github.com/llvm/llvm-project/pull/105804
This check was removed a while ago from visit(), remove it from delegate() as well.
>From 94a4986d8074bc2dbb4aa7ed11d4cf39cf963444 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Timm=20B=C3=A4der?= <tbaeder at redhat.com>
Date: Fri, 23 Aug 2024 11:05:38 +0200
Subject: [PATCH] [clang][bytecode][NFC] Remove containsErrors() check from
delegate
This check was removed a while ago from visit(), remove it from
delegate() as well.
---
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 3a3927a9671345..fb2fcbbb90302c 100644
--- a/clang/lib/AST/ByteCode/Compiler.cpp
+++ b/clang/lib/AST/ByteCode/Compiler.cpp
@@ -3262,9 +3262,6 @@ template <class Emitter> bool Compiler<Emitter>::discard(const Expr *E) {
}
template <class Emitter> bool Compiler<Emitter>::delegate(const Expr *E) {
- if (E->containsErrors())
- return this->emitError(E);
-
// We're basically doing:
// OptionScope<Emitter> Scope(this, DicardResult, Initializing);
// but that's unnecessary of course.
More information about the cfe-commits
mailing list