Remove redundant const qualifier
authorChris Lattner <sabre@nondot.org>
Wed, 23 Jul 2003 15:30:32 +0000 (15:30 +0000)
committerChris Lattner <sabre@nondot.org>
Wed, 23 Jul 2003 15:30:32 +0000 (15:30 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7254 91177308-0d34-0410-b5e6-96231b3b80d8

lib/ExecutionEngine/Interpreter/Execution.cpp

index 44c1e48c337115076074edd7da0fdbe039dac7c7..84486c21eec225bba37707b7dd68829d5f287bd0 100644 (file)
@@ -1266,11 +1266,11 @@ void Interpreter::print(const std::string &Name) {
   Value *PickedVal = ChooseOneOption(Name, LookupMatchingNames(Name));
   if (!PickedVal) return;
 
-  if (const Function *F = dyn_cast<const Function>(PickedVal)) {
+  if (const Function *F = dyn_cast<Function>(PickedVal)) {
     CW << F;  // Print the function
-  } else if (const Type *Ty = dyn_cast<const Type>(PickedVal)) {
+  } else if (const Type *Ty = dyn_cast<Type>(PickedVal)) {
     CW << "type %" << Name << " = " << Ty->getDescription() << "\n";
-  } else if (const BasicBlock *BB = dyn_cast<const BasicBlock>(PickedVal)) {
+  } else if (const BasicBlock *BB = dyn_cast<BasicBlock>(PickedVal)) {
     CW << BB;   // Print the basic block
   } else {      // Otherwise there should be an annotation for the slot#
     print(PickedVal->getType(),