[PATCH] D158743: [Verifier] Sanity check alloca size against DILocalVariable fragment size
Nikita Popov via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Aug 24 08:01:04 PDT 2023
nikic added inline comments.
Herald added a subscriber: ormris.
================
Comment at: llvm/lib/IR/Verifier.cpp:6290
+ (Expr->getNumElements() == 0 ||
+ Expr->expr_op_begin()->getOp() == dwarf::DW_OP_LLVM_fragment)) {
+ CheckDI(*FragSize <= AllocSize->getFixedValue(),
----------------
This is my attempt to only handle empty DIExpression or DW_OP_LLVM_fragment, but not things like DW_OP_deref. Is there some cleaner way to check this?
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D158743/new/
https://reviews.llvm.org/D158743
More information about the llvm-commits
mailing list