Remove always-true comparison, NFC.
authorFilipe Cabecinhas <me@filcab.net>
Fri, 3 Jul 2015 20:12:01 +0000 (20:12 +0000)
committerFilipe Cabecinhas <me@filcab.net>
Fri, 3 Jul 2015 20:12:01 +0000 (20:12 +0000)
commit177fabfc300d0d37199d3f7299a73ea7dc88aff9
treeaf825de7ff8d396019dd9024a08e9cd3c233800a
parent571beb683f9dee972980f72591965d56b62845c5
Remove always-true comparison, NFC.

Summary:
Looking at r241279, I noticed that UpgradedIntrinsics only gets written
to in the following code:

    if (UpgradeIntrinsicFunction(&F, NewFn))
      UpgradedIntrinsics[&F] = NewFn;

Looking through UpgradeIntrinsicFunction, we always return false OR
NewFn will be set to a different function from our source.

This patch pulls the F != NewFn into UpgradeIntrinsicFunction as an
assert, and removes the check from callers of UpgradeIntrinsicFunction.

Reviewers: rafael, chandlerc

Subscribers: llvm-commits-list

Differential Revision: http://reviews.llvm.org/D10915

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@241369 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Bitcode/Reader/BitcodeReader.cpp
lib/IR/AutoUpgrade.cpp