Skip to content

Commit 38b8e54

Browse files
authored
[clang][bytecode][NFC] Remove containsErrors() check from delegate (llvm#105804)
This check was removed a while ago from visit(), remove it from delegate() as well.
1 parent 646478f commit 38b8e54

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

clang/lib/AST/ByteCode/Compiler.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3262,9 +3262,6 @@ template <class Emitter> bool Compiler<Emitter>::discard(const Expr *E) {
32623262
}
32633263

32643264
template <class Emitter> bool Compiler<Emitter>::delegate(const Expr *E) {
3265-
if (E->containsErrors())
3266-
return this->emitError(E);
3267-
32683265
// We're basically doing:
32693266
// OptionScope<Emitter> Scope(this, DicardResult, Initializing);
32703267
// but that's unnecessary of course.

0 commit comments

Comments
 (0)