diff --git a/lib/Transforms/Scalar/GVNHoist.cpp b/lib/Transforms/Scalar/GVNHoist.cpp index 8f26a3206d9e..19b8dd769421 100644 --- a/lib/Transforms/Scalar/GVNHoist.cpp +++ b/lib/Transforms/Scalar/GVNHoist.cpp @@ -74,7 +74,7 @@ struct SortByDFSIn { unsigned ADFS = DFSNumber.lookup(A); unsigned BDFS = DFSNumber.lookup(B); - assert (ADFS && ADFS); + assert (ADFS && BDFS); return ADFS < BDFS; } };