diff options
| author | Nikita Popov <npopov@redhat.com> | 2023-09-18 17:20:57 +0200 | 
|---|---|---|
| committer | Nikita Popov <npopov@redhat.com> | 2023-09-18 17:24:53 +0200 | 
| commit | 38c59b9f53f0cb0af93c2861a9c7c5564c4b0cf7 (patch) | |
| tree | 51e5b834cb0a0c921fd13849090623160ae7e29f /llvm/lib | |
| parent | f025e411747ea18fb5c2928103438de98a438c68 (diff) | |
| download | llvm-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.cpp | 14 | 
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) { | 
