1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-25 12:12:47 +01:00

[Attributor] Initialize effectively unused value to appease UBSAN

This commit is contained in:
Johannes Doerfert 2021-07-20 09:16:56 -05:00
parent b354b5b95c
commit 1c3574eaae

View File

@ -5144,7 +5144,7 @@ struct AAValueSimplifyImpl : AAValueSimplify {
if (isa<ConstantPointerNull>(Obj)) {
// A null pointer access can be undefined but any offset from null may
// be OK. We do not try to optimize the latter.
bool UsedAssumedInformation;
bool UsedAssumedInformation = false;
if (!NullPointerIsDefined(L.getFunction(),
Ptr.getType()->getPointerAddressSpace()) &&
A.getAssumedSimplified(Ptr, AA, UsedAssumedInformation) == Obj)