diff --git a/src/plugins/valgrind/callgrindtool.cpp b/src/plugins/valgrind/callgrindtool.cpp index abab7340e6d..1575e368c5c 100644 --- a/src/plugins/valgrind/callgrindtool.cpp +++ b/src/plugins/valgrind/callgrindtool.cpp @@ -833,7 +833,7 @@ void CallgrindTool::handleShowCostsOfFunction() if (!symbol) return; - if (!symbol->asFunction()) + if (!symbol->asFunction() && !symbol->type()->asFunctionType()) return; CPlusPlus::Overview view;