1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-25 04:02:41 +01:00

Only read one bit for testing for a readonly type, leaving the other

bits open for future uses.

llvm-svn: 117301
This commit is contained in:
Dan Gohman 2010-10-25 20:22:29 +00:00
parent 5cbb066ea3
commit cdc30324f1

View File

@ -102,8 +102,7 @@ namespace {
ConstantInt *CI = dyn_cast<ConstantInt>(Node->getOperand(2));
if (!CI)
return false;
// TODO: Think about the encoding.
return CI->isOne();
return CI->getValue()[0];
}
};
}