[polly] r201898 - Dependences: Eliminate warning about possibly uninitialized pointers

Tobias Grosser tobias at grosser.es
Fri Feb 21 14:45:48 PST 2014


Author: grosser
Date: Fri Feb 21 16:45:48 2014
New Revision: 201898

URL: http://llvm.org/viewvc/llvm-project?rev=201898&view=rev
Log:
Dependences: Eliminate warning about possibly uninitialized pointers

Modified:
    polly/trunk/lib/Analysis/Dependences.cpp

Modified: polly/trunk/lib/Analysis/Dependences.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/Analysis/Dependences.cpp?rev=201898&r1=201897&r2=201898&view=diff
==============================================================================
--- polly/trunk/lib/Analysis/Dependences.cpp (original)
+++ polly/trunk/lib/Analysis/Dependences.cpp Fri Feb 21 16:45:48 2014
@@ -113,7 +113,9 @@ void Dependences::calculateDependences(S
         dbgs() << "MayWrite: " << MayWrite << "\n";
         dbgs() << "Schedule: " << Schedule << "\n");
 
-  WAW = WAW = WAR;
+  // The pointers below will be set by the subsequent calls to
+  // isl_union_map_compute_flow.
+  WAW = WAW = WAR = NULL;
 
   if (OptAnalysisType == VALUE_BASED_ANALYSIS) {
     isl_union_map_compute_flow(





More information about the llvm-commits mailing list