Add cast to appease windows builder. Fixes build break introduced in r280306.

llvm-svn: 280311
This commit is contained in:
Nick Lewycky 2016-08-31 23:24:43 +00:00
parent 79202c378f
commit 8dd4dad08b
1 changed files with 1 additions and 1 deletions

View 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) {