GCC doesn't understand that OrigAliasResult having a value is correlated with

ArePhisAssumedNoAlias, and warns that OrigAliasResult may be used uninitialized.
Pacify GCC.

llvm-svn: 164229
This commit is contained in:
Duncan Sands 2012-09-19 15:43:44 +00:00
parent 019cc6fe03
commit aef83e5f03
1 changed files with 1 additions and 1 deletions

View File

@ -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) &&