From: Daniel Berlin Date: Sun, 12 Feb 2017 22:02:47 +0000 (+0000) Subject: NewGVN: Fix missed call that should be to shouldSwapOperands X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=95bf9f6e713670f39f647532da368a60088f429c;p=llvm NewGVN: Fix missed call that should be to shouldSwapOperands git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@294920 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Transforms/Scalar/NewGVN.cpp b/lib/Transforms/Scalar/NewGVN.cpp index d95768216eb..38e4a30e496 100644 --- a/lib/Transforms/Scalar/NewGVN.cpp +++ b/lib/Transforms/Scalar/NewGVN.cpp @@ -2425,7 +2425,6 @@ bool NewGVN::eliminateInstructions(Function &F) { // we will simplify an operation with all constants so that it doesn't matter // what order they appear in. unsigned int NewGVN::getRank(const Value *V) const { - assert(V && "What?"); if (isa(V)) return 0; else if (auto *A = dyn_cast(V))