diff options
author | Nikita Popov <npopov@redhat.com> | 2025-03-05 12:54:03 +0100 |
---|---|---|
committer | Nikita Popov <npopov@redhat.com> | 2025-03-05 12:55:27 +0100 |
commit | a614f2b489caa19001b2f44784514a6226f79cb7 (patch) | |
tree | 56ef77893e0a7573c6619d5210fa9a90e3082510 /llvm/lib/CodeGen/StackProtector.cpp | |
parent | e1c9c842cb43a9a264ba442fb6c87d95ebc6d8e2 (diff) | |
download | llvm-a614f2b489caa19001b2f44784514a6226f79cb7.zip llvm-a614f2b489caa19001b2f44784514a6226f79cb7.tar.gz llvm-a614f2b489caa19001b2f44784514a6226f79cb7.tar.bz2 |
[StackProtector] Fix domtree verification in NewPM
Use DTU.getDomTree() to make sure the DTU if flushed.
Diffstat (limited to 'llvm/lib/CodeGen/StackProtector.cpp')
-rw-r--r-- | llvm/lib/CodeGen/StackProtector.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/StackProtector.cpp b/llvm/lib/CodeGen/StackProtector.cpp index 8aa3f9d..efa790c 100644 --- a/llvm/lib/CodeGen/StackProtector.cpp +++ b/llvm/lib/CodeGen/StackProtector.cpp @@ -136,7 +136,8 @@ PreservedAnalyses StackProtectorPass::run(Function &F, bool Changed = InsertStackProtectors(TM, &F, DT ? &DTU : nullptr, Info.HasPrologue, Info.HasIRCheck); #ifdef EXPENSIVE_CHECKS - assert((!DT || DT->verify(DominatorTree::VerificationLevel::Full)) && + assert((!DT || + DTU.getDomTree().verify(DominatorTree::VerificationLevel::Full)) && "Failed to maintain validity of domtree!"); #endif |