diff options
| author | Chris Lattner <sabre@nondot.org> | 2002-03-17 21:16:01 +0000 | 
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2002-03-17 21:16:01 +0000 | 
| commit | de421a79938c7cee7efd89c8546d81812fbcfb6d (patch) | |
| tree | 70468ecbf70f1c2f51a76b8e49fd63ab82335c4e /llvm | |
| parent | 88981d2fa4e3ef303ddc3bb0d0cca6539b44e4f7 (diff) | |
| download | bcm5719-llvm-de421a79938c7cee7efd89c8546d81812fbcfb6d.tar.gz bcm5719-llvm-de421a79938c7cee7efd89c8546d81812fbcfb6d.zip  | |
Make an assertion provide a more helpful error message
llvm-svn: 1883
Diffstat (limited to 'llvm')
| -rw-r--r-- | llvm/lib/VMCore/PassManagerT.h | 3 | 
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/VMCore/PassManagerT.h b/llvm/lib/VMCore/PassManagerT.h index d5c483f7524..d990d89f5a1 100644 --- a/llvm/lib/VMCore/PassManagerT.h +++ b/llvm/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);      }    }  | 

