[clang] 803db1f - [clang][Interp][NFC] Add missing fallthrough when parsing While loops
Timm Bäder via cfe-commits
cfe-commits at lists.llvm.org
Tue Jul 30 03:42:30 PDT 2024
Author: Timm Bäder
Date: 2024-07-30T12:42:04+02:00
New Revision: 803db1f5254047b08b6887c52009d4e72e67a673
URL: https://github.com/llvm/llvm-project/commit/803db1f5254047b08b6887c52009d4e72e67a673
DIFF: https://github.com/llvm/llvm-project/commit/803db1f5254047b08b6887c52009d4e72e67a673.diff
LOG: [clang][Interp][NFC] Add missing fallthrough when parsing While loops
Added:
Modified:
clang/lib/AST/Interp/Compiler.cpp
Removed:
################################################################################
diff --git a/clang/lib/AST/Interp/Compiler.cpp b/clang/lib/AST/Interp/Compiler.cpp
index c07c1062f68a1..258e4ed645254 100644
--- a/clang/lib/AST/Interp/Compiler.cpp
+++ b/clang/lib/AST/Interp/Compiler.cpp
@@ -4373,6 +4373,7 @@ bool Compiler<Emitter>::visitWhileStmt(const WhileStmt *S) {
if (!this->jump(CondLabel))
return false;
+ this->fallthrough(EndLabel);
this->emitLabel(EndLabel);
return true;
More information about the cfe-commits
mailing list