[PATCH] D65568: [AliasAnalysis] Initialize a member variable that may be used by unit test.

Peter Smith via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Aug 2 01:05:20 PDT 2019


This revision was automatically updated to reflect the committed changes.
Closed by commit rL367662: [AliasAnalysis] Initialize a member variable that may be used by unit test. (authored by psmith, committed by ).
Herald added a project: LLVM.

Changed prior to commit:
  https://reviews.llvm.org/D65568?vs=212771&id=212982#toc

Repository:
  rL LLVM

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D65568/new/

https://reviews.llvm.org/D65568

Files:
  llvm/trunk/include/llvm/Analysis/AliasAnalysis.h
  llvm/trunk/unittests/Analysis/BasicAliasAnalysisTest.cpp


Index: llvm/trunk/include/llvm/Analysis/AliasAnalysis.h
===================================================================
--- llvm/trunk/include/llvm/Analysis/AliasAnalysis.h
+++ llvm/trunk/include/llvm/Analysis/AliasAnalysis.h
@@ -949,7 +949,7 @@
 
   /// A pointer to the AAResults object that this AAResult is
   /// aggregated within. May be null if not aggregated.
-  AAResults *AAR;
+  AAResults *AAR = nullptr;
 
   /// Helper to dispatch calls back through the derived type.
   DerivedT &derived() { return static_cast<DerivedT &>(*this); }
Index: llvm/trunk/unittests/Analysis/BasicAliasAnalysisTest.cpp
===================================================================
--- llvm/trunk/unittests/Analysis/BasicAliasAnalysisTest.cpp
+++ llvm/trunk/unittests/Analysis/BasicAliasAnalysisTest.cpp
@@ -64,13 +64,10 @@
       : M("BasicAATest", C), B(C), DL(DLString), TLI(TLII), F(nullptr) {}
 };
 
-// FIXME: Both of these are disabled at the moment due to strange buildbot
-// failures. Please see https://bugs.llvm.org/show_bug.cgi?id=42719
-
 // Check that a function arg can't trivially alias a global when we're accessing
 // >sizeof(global) bytes through that arg, unless the access size is just an
 // upper-bound.
-TEST_F(BasicAATest, DISABLED_AliasInstWithObjectOfImpreciseSize) {
+TEST_F(BasicAATest, AliasInstWithObjectOfImpreciseSize) {
   F = Function::Create(
       FunctionType::get(B.getVoidTy(), {B.getInt32Ty()->getPointerTo()}, false),
       GlobalValue::ExternalLinkage, "F", &M);
@@ -104,7 +101,7 @@
 
 // Check that we fall back to MayAlias if we see an access of an entire object
 // that's just an upper-bound.
-TEST_F(BasicAATest, DISABLED_AliasInstWithFullObjectOfImpreciseSize) {
+TEST_F(BasicAATest, AliasInstWithFullObjectOfImpreciseSize) {
   F = Function::Create(
       FunctionType::get(B.getVoidTy(), {B.getInt64Ty()}, false),
       GlobalValue::ExternalLinkage, "F", &M);


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D65568.212982.patch
Type: text/x-patch
Size: 1918 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190802/50c7dec2/attachment.bin>


More information about the llvm-commits mailing list