IR: Remove isa<MDNodeFwdDecl>, NFC

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@226486 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Duncan P. N. Exon Smith 2015-01-19 19:06:41 +00:00
parent c9a780aec5
commit 2b6db3ceeb

View File

@ -54,10 +54,7 @@ DIBuilder::DIBuilder(Module &m, bool AllowUnresolvedNodes)
DeclareFn(nullptr), ValueFn(nullptr),
AllowUnresolvedNodes(AllowUnresolvedNodes) {}
static bool isUnresolved(MDNode *N) {
return N &&
(isa<MDNodeFwdDecl>(N) || !cast<UniquableMDNode>(N)->isResolved());
}
static bool isUnresolved(MDNode *N) { return N && !N->isResolved(); }
void DIBuilder::trackIfUnresolved(MDNode *N) {
if (!AllowUnresolvedNodes) {