diff options
author | Chris Lattner <sabre@nondot.org> | 2003-11-25 21:28:00 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2003-11-25 21:28:00 +0000 |
commit | d85cbe8f693cfbcce7fa2a4aa4b363824f300c72 (patch) | |
tree | ed3bafd37076d078bc91b4a9bb2f0b9e78e149a1 /lib | |
parent | b9da9c137d3062dd2277937eaafa502fba2ffe3f (diff) | |
download | external_llvm-d85cbe8f693cfbcce7fa2a4aa4b363824f300c72.zip external_llvm-d85cbe8f693cfbcce7fa2a4aa4b363824f300c72.tar.gz external_llvm-d85cbe8f693cfbcce7fa2a4aa4b363824f300c72.tar.bz2 |
Fix const correctness
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10229 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/VMCore/Type.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/VMCore/Type.cpp b/lib/VMCore/Type.cpp index 3c2fd8c..9925a54 100644 --- a/lib/VMCore/Type.cpp +++ b/lib/VMCore/Type.cpp @@ -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; } |