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:
parent
b354b5b95c
commit
1c3574eaae
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user