mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-12 14:20:33 +00:00
GCC doesn't understand that OrigAliasResult having a value is correlated with
ArePhisAssumedNoAlias, and warns that OrigAliasResult may be used uninitialized. Pacify GCC. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@164229 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
419f376564
commit
7c894691ef
@ -1086,7 +1086,7 @@ BasicAliasAnalysis::aliasPHI(const PHINode *PN, uint64_t PNSize,
|
||||
// We assume for the recursion that the the phis (ptr_phi, ptr2_phi) do
|
||||
// not alias each other.
|
||||
bool ArePhisAssumedNoAlias = false;
|
||||
AliasResult OrigAliasResult;
|
||||
AliasResult OrigAliasResult = NoAlias;
|
||||
if (Alias == NoAlias) {
|
||||
// Pretend the phis do not alias.
|
||||
assert(AliasCache.count(Locs) &&
|
||||
|
Loading…
Reference in New Issue
Block a user