[llvm-branch-commits] [llvm] 0003600 - [AA] Initialize Depth member

Nikita Popov via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Sat Dec 5 02:47:23 PST 2020


Author: Nikita Popov
Date: 2020-12-05T11:37:36+01:00
New Revision: 0003600aafd422ffb9dd86383d4828990476d45c

URL: https://github.com/llvm/llvm-project/commit/0003600aafd422ffb9dd86383d4828990476d45c
DIFF: https://github.com/llvm/llvm-project/commit/0003600aafd422ffb9dd86383d4828990476d45c.diff

LOG: [AA] Initialize Depth member

Fix mistake introduced in f8afba5f7a25a69c12191d979d78d40fa6e5b684:
I failed to initialize the Depth member to zero.

Added: 
    

Modified: 
    llvm/include/llvm/Analysis/AliasAnalysis.h

Removed: 
    


################################################################################
diff  --git a/llvm/include/llvm/Analysis/AliasAnalysis.h b/llvm/include/llvm/Analysis/AliasAnalysis.h
index 05c01931766e..ce4ebab3efa4 100644
--- a/llvm/include/llvm/Analysis/AliasAnalysis.h
+++ b/llvm/include/llvm/Analysis/AliasAnalysis.h
@@ -815,7 +815,7 @@ class AAResults {
   std::vector<AnalysisKey *> AADeps;
 
   /// Query depth used to distinguish recursive queries.
-  unsigned Depth;
+  unsigned Depth = 0;
 
   friend class BatchAAResults;
 };


        


More information about the llvm-branch-commits mailing list