mirror of
https://github.com/RPCS3/llvm.git
synced 2025-02-01 16:22:41 +00:00
Fix const correctness
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10229 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
b9da9c137d
commit
d85cbe8f69
@ -262,7 +262,7 @@ const std::string &Type::getDescription() const {
|
||||
|
||||
bool StructType::indexValid(const Value *V) const {
|
||||
// Structure indexes require unsigned integer constants.
|
||||
if (ConstantUInt *CU = dyn_cast<ConstantUInt>(V))
|
||||
if (const ConstantUInt *CU = dyn_cast<ConstantUInt>(V))
|
||||
return CU->getValue() < ETypes.size();
|
||||
return false;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user