The check was supposed to check for constant type, not constant value.
This fixes a false negative that appeared in
`LargeParameter/test.cpp:106`.
This commit is contained in:
Jonas Jensen 2020-05-01 09:04:31 +02:00
Родитель 8ffa124bf9
Коммит 9fc27e9130
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -223,7 +223,7 @@ private predicate lvalueMayEscapeMutablyAt(Expr e) {
lvalueMayEscapeAt(e) and
// A qualifier of a call to a const member function is converted to a const
// class type.
not e.isConstant()
not e.getType().isConst()
}
private predicate addressFromVariableAccess(VariableAccess va, Expr e) {