[MSAN] Use TypeSize and related utilities [nfc-ish]
authorPhilip Reames <preames@rivosinc.com>
Mon, 13 Mar 2023 20:55:24 +0000 (13:55 -0700)
committerPhilip Reames <listmail@philipreames.com>
Mon, 13 Mar 2023 21:10:37 +0000 (14:10 -0700)
commit991e5730465e6dba5699e96b86b3cd64275553bf
treee2a66080d7c1eb896732efe3910b835e5e8f8dba
parent9a733e8a2c58957591e4dc0a02f9cfa6a06603de
[MSAN] Use TypeSize and related utilities [nfc-ish]

This is part of prework for supporting scalable vector types.  This isn't NFC because it shifts the point of failure (i.e. which assert triggers first), but should be NFC for all non-scalable vector inputs.
llvm/lib/Transforms/Instrumentation/MemorySanitizer.cpp