From 2bfc0310ff816562bd2f07baa9086258d9ac403b Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Sun, 17 Mar 2002 21:16:01 +0000 Subject: [PATCH] Make an assertion provide a more helpful error message git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1883 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/VMCore/PassManagerT.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/VMCore/PassManagerT.h b/lib/VMCore/PassManagerT.h index d5c483f7524..d990d89f5a1 100644 --- a/lib/VMCore/PassManagerT.h +++ b/lib/VMCore/PassManagerT.h @@ -216,7 +216,8 @@ public: // parent that we (the passmanager) are using the analysis so that it // frees the analysis AFTER this pass manager runs. // - assert(Parent != 0 && "Pass available but not found!"); + assert(Parent != 0 && "Pass available but not found! " + "Did your analysis pass 'Provide' itself?"); Parent->markPassUsed(P, this); } } -- 2.34.1