Add cast to appease windows builder. Fixes build break introduced in r280306.
authorNick Lewycky <nicholas@mxc.ca>
Wed, 31 Aug 2016 23:24:43 +0000 (23:24 +0000)
committerNick Lewycky <nicholas@mxc.ca>
Wed, 31 Aug 2016 23:24:43 +0000 (23:24 +0000)
llvm-svn: 280311

llvm/lib/Transforms/Instrumentation/GCOVProfiling.cpp

index 375be2a..93a29fd 100644 (file)
@@ -428,7 +428,7 @@ std::string GCOVProfiler::mangleName(const DICompileUnit *CU,
       bool ThreeElement = N->getNumOperands() == 3;
       if (!ThreeElement && N->getNumOperands() != 2)
         continue;
-      if (N->getOperand(ThreeElement ? 2 : 1) != CU)
+      if (dyn_cast<MDNode>(N->getOperand(ThreeElement ? 2 : 1)) != CU)
         continue;
 
       if (ThreeElement) {