aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/AST/ByteCode/Compiler.cpp
diff options
context:
space:
mode:
authorTimm Baeder <tbaeder@redhat.com>2025-08-09 15:46:28 +0200
committerGitHub <noreply@github.com>2025-08-09 15:46:28 +0200
commit7a6c9813d69bf390ab2db3b060305b6aade7703b (patch)
tree7ed36dcb287f9701c5ef651dce2b498aa8a9d1a1 /clang/lib/AST/ByteCode/Compiler.cpp
parentf89306fe74434c55fc7844532f1a3bdaf9a838ea (diff)
downloadllvm-7a6c9813d69bf390ab2db3b060305b6aade7703b.zip
llvm-7a6c9813d69bf390ab2db3b060305b6aade7703b.tar.gz
llvm-7a6c9813d69bf390ab2db3b060305b6aade7703b.tar.bz2
[clang][bytecode] Add AccessFlags to Block (#152590)
This way, we can check a single uint8_t for != 0 to know whether this block is accessible or not. If not, we still need to figure out why not and diagnose appropriately of course.
Diffstat (limited to 'clang/lib/AST/ByteCode/Compiler.cpp')
-rw-r--r--clang/lib/AST/ByteCode/Compiler.cpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/clang/lib/AST/ByteCode/Compiler.cpp b/clang/lib/AST/ByteCode/Compiler.cpp
index 9db2011..f131ac1 100644
--- a/clang/lib/AST/ByteCode/Compiler.cpp
+++ b/clang/lib/AST/ByteCode/Compiler.cpp
@@ -7140,10 +7140,6 @@ bool Compiler<Emitter>::emitDestruction(const Descriptor *Desc,
assert(!Desc->isPrimitive());
assert(!Desc->isPrimitiveArray());
- // Can happen if the decl is invalid.
- if (Desc->isDummy())
- return true;
-
// Arrays.
if (Desc->isArray()) {
const Descriptor *ElemDesc = Desc->ElemDesc;