[llvm] r276844 - [GVNHoist] Fix typo in assert.
George Burgess IV via llvm-commits
llvm-commits at lists.llvm.org
Tue Jul 26 23:34:54 PDT 2016
Author: gbiv
Date: Wed Jul 27 01:34:53 2016
New Revision: 276844
URL: http://llvm.org/viewvc/llvm-project?rev=276844&view=rev
Log:
[GVNHoist] Fix typo in assert.
This fixes PR28730.
Modified:
llvm/trunk/lib/Transforms/Scalar/GVNHoist.cpp
Modified: llvm/trunk/lib/Transforms/Scalar/GVNHoist.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Scalar/GVNHoist.cpp?rev=276844&r1=276843&r2=276844&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Scalar/GVNHoist.cpp (original)
+++ llvm/trunk/lib/Transforms/Scalar/GVNHoist.cpp Wed Jul 27 01:34:53 2016
@@ -74,7 +74,7 @@ public:
unsigned ADFS = DFSNumber.lookup(A);
unsigned BDFS = DFSNumber.lookup(B);
- assert (ADFS && ADFS);
+ assert (ADFS && BDFS);
return ADFS < BDFS;
}
};
More information about the llvm-commits
mailing list