[ValueTracking] Replace an always false condition with an assert. NFC
authorCraig Topper <craig.topper@sifive.com>
Thu, 9 Feb 2023 23:19:18 +0000 (15:19 -0800)
committerCraig Topper <craig.topper@sifive.com>
Thu, 9 Feb 2023 23:19:28 +0000 (15:19 -0800)
commit68c906811bcb1edfc1a4c73e0fcadb51f7f3e8e3
tree9e31ff2c663e60292284cad577065f5569fe5d41
parent5d8da5a208e6501baff7a8fd8de76ea143e49646
[ValueTracking] Replace an always false condition with an assert. NFC

The one caller of this function already checked that V isn't a
Constant.

Alternatively, we could remove the check from the caller if reviewers
prefer.

Reviewed By: spatel

Differential Revision: https://reviews.llvm.org/D143677
llvm/lib/Analysis/ValueTracking.cpp