BufferAccess must be reachable. False positives observed where accesses occur in dead code.

This commit is contained in:
REDMOND\brodes
2024-08-12 10:51:04 -04:00
parent abd0a076a8
commit f0eeaaf44e

View File

@@ -14,7 +14,11 @@ int getPointedSize(Type t) {
* BufferWrite differ.
*/
abstract class BufferAccess extends Expr {
BufferAccess() { not this.isUnevaluated() }
BufferAccess() {
not this.isUnevaluated() and
//A buffer access must be reachable (not in dead code)
reachable(this)
}
abstract string getName();