projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
79202c3
)
Add cast to appease windows builder. Fixes build break introduced in r280306.
author
Nick Lewycky
<nicholas@mxc.ca>
Wed, 31 Aug 2016 23:24:43 +0000
(23:24 +0000)
committer
Nick Lewycky
<nicholas@mxc.ca>
Wed, 31 Aug 2016 23:24:43 +0000
(23:24 +0000)
llvm-svn: 280311
llvm/lib/Transforms/Instrumentation/GCOVProfiling.cpp
patch
|
blob
|
history
diff --git
a/llvm/lib/Transforms/Instrumentation/GCOVProfiling.cpp
b/llvm/lib/Transforms/Instrumentation/GCOVProfiling.cpp
index
375be2a
..
93a29fd
100644
(file)
--- 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) {