[llvm] r280311 - Add cast to appease windows builder. Fixes build break introduced in r280306.

Nick Lewycky via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 31 16:24:43 PDT 2016


Author: nicholas
Date: Wed Aug 31 18:24:43 2016
New Revision: 280311

URL: http://llvm.org/viewvc/llvm-project?rev=280311&view=rev
Log:
Add cast to appease windows builder. Fixes build break introduced in r280306.

Modified:
    llvm/trunk/lib/Transforms/Instrumentation/GCOVProfiling.cpp

Modified: llvm/trunk/lib/Transforms/Instrumentation/GCOVProfiling.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Instrumentation/GCOVProfiling.cpp?rev=280311&r1=280310&r2=280311&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Instrumentation/GCOVProfiling.cpp (original)
+++ llvm/trunk/lib/Transforms/Instrumentation/GCOVProfiling.cpp Wed Aug 31 18:24:43 2016
@@ -428,7 +428,7 @@ std::string GCOVProfiler::mangleName(con
       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) {




More information about the llvm-commits mailing list