HomePhabricator

Don't assume a reference refers to at least sizeof(T) bytes.

Authored by rsmith on Fri, Jan 31, 7:06 PM.

Description

Don't assume a reference refers to at least sizeof(T) bytes.

When T is a class type, only nvsize(T) bytes need be accessible through
the reference. We had matching bugs in the application of the
dereferenceable attribute and in -fsanitize=undefined.

Details

Committed
rsmithFri, Jan 31, 7:08 PM
Parents
rGdc1d43cfa029: [mlir][Linalg] NFC - Cleanup and split input file for roundtrip.mlir
Branches
Unknown
Tags
Unknown