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:
parent
5cbb066ea3
commit
cdc30324f1
@ -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];
|
||||
}
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user