aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib
diff options
context:
space:
mode:
authorNikita Popov <npopov@redhat.com>2023-09-18 17:20:57 +0200
committerNikita Popov <npopov@redhat.com>2023-09-18 17:24:53 +0200
commit38c59b9f53f0cb0af93c2861a9c7c5564c4b0cf7 (patch)
tree51e5b834cb0a0c921fd13849090623160ae7e29f /llvm/lib
parentf025e411747ea18fb5c2928103438de98a438c68 (diff)
downloadllvm-38c59b9f53f0cb0af93c2861a9c7c5564c4b0cf7.zip
llvm-38c59b9f53f0cb0af93c2861a9c7c5564c4b0cf7.tar.gz
llvm-38c59b9f53f0cb0af93c2861a9c7c5564c4b0cf7.tar.bz2
Revert "Reapply [Verifier] Sanity check alloca size against DILocalVariable fragment size"
This reverts commit 47324cfd7d8ca1a2a5cbb9f948ecff66a28ee6bc. This exposed incorrect debuginfo in rustc. Revert the verification until this has been fixed.
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/IR/Verifier.cpp14
1 files changed, 0 insertions, 14 deletions
diff --git a/llvm/lib/IR/Verifier.cpp b/llvm/lib/IR/Verifier.cpp
index 9ce0ef5..10d1763 100644
--- a/llvm/lib/IR/Verifier.cpp
+++ b/llvm/lib/IR/Verifier.cpp
@@ -6298,20 +6298,6 @@ void Verifier::visitDbgIntrinsic(StringRef Kind, DbgVariableIntrinsic &DII) {
CheckDI(isType(Var->getRawType()), "invalid type ref", Var,
Var->getRawType());
verifyFnArgs(DII);
-
- if (auto *Declare = dyn_cast<DbgDeclareInst>(&DII)) {
- if (auto *Alloca = dyn_cast_or_null<AllocaInst>(Declare->getAddress())) {
- DIExpression *Expr = Declare->getExpression();
- std::optional<uint64_t> FragSize = Declare->getFragmentSizeInBits();
- std::optional<TypeSize> AllocSize = Alloca->getAllocationSizeInBits(DL);
- if (FragSize && AllocSize && !AllocSize->isScalable() &&
- !Expr->isComplex()) {
- CheckDI(*FragSize <= AllocSize->getFixedValue(),
- "llvm.dbg.declare has larger fragment size than alloca size ",
- &DII);
- }
- }
- }
}
void Verifier::visitDbgLabelIntrinsic(StringRef Kind, DbgLabelInst &DLI) {