From 7963f422e12f2dd71baa470db440899b4f2c998b Mon Sep 17 00:00:00 2001 From: George Burgess IV Date: Wed, 27 Jul 2016 06:34:53 +0000 Subject: [PATCH] [GVNHoist] Fix typo in assert. This fixes PR28730. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@276844 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Transforms/Scalar/GVNHoist.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } };