C++: Simplify some more.

This commit is contained in:
Cornelius Riemenschneider
2020-11-24 17:00:47 +01:00
parent 7983b16e84
commit 026abae323

View File

@@ -212,7 +212,7 @@ private predicate addressMayEscapeAt(Expr e) {
private predicate addressMayEscapeMutablyAt(Expr e) {
addressMayEscapeAt(e) and
exists(Type t | t = e.getType().getUnderlyingType().stripTopLevelSpecifiers() |
exists(Type t | t = e.getType().stripTopLevelSpecifiers() |
t instanceof PointerType and
not t.(PointerType).getBaseType().isConst()
or