aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Object/COFFObjectFile.cpp
diff options
context:
space:
mode:
authorFilipe Cabecinhas <me@filcab.net>2015-07-03 20:12:01 +0000
committerFilipe Cabecinhas <me@filcab.net>2015-07-03 20:12:01 +0000
commit0011c58444f63205caed207e136e9be0e288d47a (patch)
tree7d74d12a1beaafd1befc30dc1df0a44fc42cd886 /llvm/lib/Object/COFFObjectFile.cpp
parentc36cfe7af006bf5566cc125c90418403c7469a9b (diff)
downloadllvm-0011c58444f63205caed207e136e9be0e288d47a.zip
llvm-0011c58444f63205caed207e136e9be0e288d47a.tar.gz
llvm-0011c58444f63205caed207e136e9be0e288d47a.tar.bz2
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 llvm-svn: 241369
Diffstat (limited to 'llvm/lib/Object/COFFObjectFile.cpp')
0 files changed, 0 insertions, 0 deletions