From 95bf9f6e713670f39f647532da368a60088f429c Mon Sep 17 00:00:00 2001 From: Daniel Berlin Date: Sun, 12 Feb 2017 22:02:47 +0000 Subject: [PATCH] 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 --- lib/Transforms/Scalar/NewGVN.cpp | 1 - 1 file changed, 1 deletion(-) 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)) -- 2.50.1