diff --git a/llvm/lib/Transforms/Utils/SimplifyCFG.cpp b/llvm/lib/Transforms/Utils/SimplifyCFG.cpp index 055e8cadaab76..bfdda07e61912 100644 --- a/llvm/lib/Transforms/Utils/SimplifyCFG.cpp +++ b/llvm/lib/Transforms/Utils/SimplifyCFG.cpp @@ -695,7 +695,7 @@ struct ConstantComparesGatherer { UsedICmps++; Vals.push_back(C); - return ICI->getOperand(0); + return true; } // If we have "x ult 3", for example, then we can add 0,1,2 to the set.