From d85cbe8f693cfbcce7fa2a4aa4b363824f300c72 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Tue, 25 Nov 2003 21:28:00 +0000 Subject: [PATCH] Fix const correctness git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10229 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/VMCore/Type.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/VMCore/Type.cpp b/lib/VMCore/Type.cpp index 3c2fd8ca47f..9925a54d688 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(V)) + if (const ConstantUInt *CU = dyn_cast(V)) return CU->getValue() < ETypes.size(); return false; } -- 2.34.1