aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/StackProtector.cpp
diff options
context:
space:
mode:
authorNikita Popov <npopov@redhat.com>2025-03-05 12:54:03 +0100
committerNikita Popov <npopov@redhat.com>2025-03-05 12:55:27 +0100
commita614f2b489caa19001b2f44784514a6226f79cb7 (patch)
tree56ef77893e0a7573c6619d5210fa9a90e3082510 /llvm/lib/CodeGen/StackProtector.cpp
parente1c9c842cb43a9a264ba442fb6c87d95ebc6d8e2 (diff)
downloadllvm-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.cpp3
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