diff options
Diffstat (limited to 'llvm/lib')
-rw-r--r-- | llvm/lib/IR/DIBuilder.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/llvm/lib/IR/DIBuilder.cpp b/llvm/lib/IR/DIBuilder.cpp index 856bb3c3375..d76fcc532f0 100644 --- a/llvm/lib/IR/DIBuilder.cpp +++ b/llvm/lib/IR/DIBuilder.cpp @@ -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) { |