summaryrefslogtreecommitdiff
path: root/compilerplugins/clang/refcounting.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-08-04 10:25:48 +0200
committerNoel Grandin <noel@peralex.com>2015-08-04 10:25:48 +0200
commit3d5dc80b0760ad37537cf449e7ac3836f68ad910 (patch)
tree69a97193eb09f85d74be4d229804274cd01d6506 /compilerplugins/clang/refcounting.cxx
parent875e1b50a069a46f59d4c64399ec09ff574fee87 (diff)
fix crash in refcounting plugin
introduced by commit c15b4cf39a74176cee64795129d76f411d2c0a69 "Adapt to current Clang trunk towards 3.7" Change-Id: I00f58d3bc79e641df9bba4e9b1d5c8463b87dc42
Diffstat (limited to 'compilerplugins/clang/refcounting.cxx')
-rw-r--r--compilerplugins/clang/refcounting.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/compilerplugins/clang/refcounting.cxx b/compilerplugins/clang/refcounting.cxx
index c82dfeb8bad9..7b859ff65f22 100644
--- a/compilerplugins/clang/refcounting.cxx
+++ b/compilerplugins/clang/refcounting.cxx
@@ -90,7 +90,7 @@ bool isDerivedFrom(const CXXRecordDecl *decl, const char *pString) {
{ return BaseCheckNotSubclass(
BaseDefinition, const_cast<char *>(pString)); },
#endif
- true))
+ static_cast<void*>(const_cast<char*>(pString)), true))
{
return true;
}