[llvm-commits] [llvm] r164229 - /llvm/trunk/lib/Analysis/BasicAliasAnalysis.cpp
Duncan Sands
baldrick at free.fr
Wed Sep 19 08:43:44 PDT 2012
Author: baldrick
Date: Wed Sep 19 10:43:44 2012
New Revision: 164229
URL: http://llvm.org/viewvc/llvm-project?rev=164229&view=rev
Log:
GCC doesn't understand that OrigAliasResult having a value is correlated with
ArePhisAssumedNoAlias, and warns that OrigAliasResult may be used uninitialized.
Pacify GCC.
Modified:
llvm/trunk/lib/Analysis/BasicAliasAnalysis.cpp
Modified: llvm/trunk/lib/Analysis/BasicAliasAnalysis.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Analysis/BasicAliasAnalysis.cpp?rev=164229&r1=164228&r2=164229&view=diff
==============================================================================
--- llvm/trunk/lib/Analysis/BasicAliasAnalysis.cpp (original)
+++ llvm/trunk/lib/Analysis/BasicAliasAnalysis.cpp Wed Sep 19 10:43:44 2012
@@ -1086,7 +1086,7 @@
// 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) &&
More information about the llvm-commits
mailing list