IR: Remove isa<MDNodeFwdDecl>, NFC
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>
Mon, 19 Jan 2015 19:06:41 +0000 (19:06 +0000)
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>
Mon, 19 Jan 2015 19:06:41 +0000 (19:06 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@226486 91177308-0d34-0410-b5e6-96231b3b80d8

lib/IR/DIBuilder.cpp

index 856bb3c3375a9b7c519ad6f1dfcf9fe9e116936c..d76fcc532f00fdf07bd216a8aa17d96330524b7f 100644 (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) {