diff options
author | Nick Lewycky <nicholas@mxc.ca> | 2016-08-31 23:24:43 +0000 |
---|---|---|
committer | Nick Lewycky <nicholas@mxc.ca> | 2016-08-31 23:24:43 +0000 |
commit | 8dd4dad08bbef5d578c0a84882cbefbcf0858cec (patch) | |
tree | 7c1d98e8cad4cb46a3e7c89f5ef1e9de7dbfcf11 /llvm | |
parent | 79202c378f2d33e1cca457a93d7bfa22b78556a9 (diff) | |
download | bcm5719-llvm-8dd4dad08bbef5d578c0a84882cbefbcf0858cec.tar.gz bcm5719-llvm-8dd4dad08bbef5d578c0a84882cbefbcf0858cec.zip |
Add cast to appease windows builder. Fixes build break introduced in r280306.
llvm-svn: 280311
Diffstat (limited to 'llvm')
-rw-r--r-- | llvm/lib/Transforms/Instrumentation/GCOVProfiling.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Instrumentation/GCOVProfiling.cpp b/llvm/lib/Transforms/Instrumentation/GCOVProfiling.cpp index 375be2a2204..93a29fde996 100644 --- a/llvm/lib/Transforms/Instrumentation/GCOVProfiling.cpp +++ b/llvm/lib/Transforms/Instrumentation/GCOVProfiling.cpp @@ -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) { |