Make an assertion provide a more helpful error message
authorChris Lattner <sabre@nondot.org>
Sun, 17 Mar 2002 21:16:01 +0000 (21:16 +0000)
committerChris Lattner <sabre@nondot.org>
Sun, 17 Mar 2002 21:16:01 +0000 (21:16 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1883 91177308-0d34-0410-b5e6-96231b3b80d8

lib/VMCore/PassManagerT.h

index d5c483f7524d133f60bd9df39b6a3323c6f65a5e..d990d89f5a11f4841937975f27e6cc49c74a88d4 100644 (file)
@@ -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);
     }
   }