Remove unneeded check

llvm-svn: 13355
This commit is contained in:
Chris Lattner 2004-05-04 19:35:11 +00:00
parent 22df9a59b4
commit c6f601310f
1 changed files with 0 additions and 1 deletions

View File

@ -2180,7 +2180,6 @@ static unsigned ExactLog2(unsigned Val) {
if (Val == 0 || (Val & (Val-1))) return 0;
unsigned Count = 0;
while (Val != 1) {
if (Val & 1) return 0;
Val >>= 1;
++Count;
}