[AA] Initialize Depth member
authorNikita Popov <nikita.ppv@gmail.com>
Sat, 5 Dec 2020 10:35:58 +0000 (11:35 +0100)
committerNikita Popov <nikita.ppv@gmail.com>
Sat, 5 Dec 2020 10:37:36 +0000 (11:37 +0100)
Fix mistake introduced in f8afba5f7a25a69c12191d979d78d40fa6e5b684:
I failed to initialize the Depth member to zero.

llvm/include/llvm/Analysis/AliasAnalysis.h

index 05c0193..ce4ebab 100644 (file)
@@ -815,7 +815,7 @@ private:
   std::vector<AnalysisKey *> AADeps;
 
   /// Query depth used to distinguish recursive queries.
-  unsigned Depth;
+  unsigned Depth = 0;
 
   friend class BatchAAResults;
 };