From b76e03ca79f634cbcec8b2db3adc7740b13373b8 Mon Sep 17 00:00:00 2001 From: Ian Lynagh Date: Wed, 22 Aug 2018 22:23:17 +0100 Subject: [PATCH] C++: Add a missing underlyingElement call --- cpp/ql/src/semmle/code/cpp/exprs/Cast.qll | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cpp/ql/src/semmle/code/cpp/exprs/Cast.qll b/cpp/ql/src/semmle/code/cpp/exprs/Cast.qll index 1c234c4950cd..e2c09d1fcdb4 100644 --- a/cpp/ql/src/semmle/code/cpp/exprs/Cast.qll +++ b/cpp/ql/src/semmle/code/cpp/exprs/Cast.qll @@ -297,7 +297,7 @@ class BoolConversion extends Cast { */ class VoidConversion extends Cast { VoidConversion() { - conversionkinds(this, 0) and + conversionkinds(underlyingElement(this), 0) and getType().getUnspecifiedType() instanceof VoidType }