mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-06 23:32:27 +00:00
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
This commit is contained in:
parent
190144293d
commit
2bfc0310ff
@ -216,7 +216,8 @@ public:
|
|||||||
// parent that we (the passmanager) are using the analysis so that it
|
// parent that we (the passmanager) are using the analysis so that it
|
||||||
// frees the analysis AFTER this pass manager runs.
|
// 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);
|
Parent->markPassUsed(P, this);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user