From 7c894691ef8a36e089bc602d1b22130c44881772 Mon Sep 17 00:00:00 2001 From: Duncan Sands Date: Wed, 19 Sep 2012 15:43:44 +0000 Subject: [PATCH] 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 --- lib/Analysis/BasicAliasAnalysis.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Analysis/BasicAliasAnalysis.cpp b/lib/Analysis/BasicAliasAnalysis.cpp index a3bc06a80f2..7fad8fecb04 100644 --- a/lib/Analysis/BasicAliasAnalysis.cpp +++ b/lib/Analysis/BasicAliasAnalysis.cpp @@ -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) &&