mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-12 03:32:10 +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 {
|
bool StructType::indexValid(const Value *V) const {
|
||||||
// Structure indexes require unsigned integer constants.
|
// 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 CU->getValue() < ETypes.size();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user