forked from OSchip/llvm-project
DivergenceAnalysisTest: fix use of uninitialized memory
Thanks to Simon Moll for chasing it down. Change-Id: If188f07c4aaec217f40a7a2ca029818f9202f1cb llvm-svn: 344738
This commit is contained in:
parent
2c30fbcac5
commit
7052cb35a1
|
@ -302,7 +302,7 @@ TEST_F(DivergenceAnalysisTest, DAJoinDivergence) {
|
|||
if (!Phi)
|
||||
continue;
|
||||
|
||||
if (&BB == *ItDivJoins) {
|
||||
if (ItDivJoins != ItCase.second.end() && &BB == *ItDivJoins) {
|
||||
EXPECT_TRUE(DA.isDivergent(*Phi));
|
||||
// Advance to next block with expected divergent PHI node.
|
||||
++ItDivJoins;
|
||||
|
|
Loading…
Reference in New Issue