Fix accidentally constant conditions found by uncommitted improvements to -Wconstant...
authorDavid Blaikie <dblaikie@gmail.com>
Mon, 9 Apr 2012 16:29:35 +0000 (16:29 +0000)
committerDavid Blaikie <dblaikie@gmail.com>
Mon, 9 Apr 2012 16:29:35 +0000 (16:29 +0000)
commit6bb5212b6e0ed2607f08217df7468cc4492f3197
tree236198af57690035134ce146e9228f98b83949e6
parentdecbc43f72866fa33d18e4b63d0d2dd2a2e102f6
Fix accidentally constant conditions found by uncommitted improvements to -Wconstant-conversion.

A couple of cases where we were accidentally creating constant conditions by
something like "x == a || b" instead of "x == a || x == b". In one case a
conditional & then unreachable was used - I transformed this into a direct
assert instead.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@154324 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Instructions.h
lib/Target/MBlaze/MBlazeELFWriterInfo.cpp