Eliminate an unnecessary cast.
authorDan Gohman <gohman@apple.com>
Wed, 25 Aug 2010 17:09:03 +0000 (17:09 +0000)
committerDan Gohman <gohman@apple.com>
Wed, 25 Aug 2010 17:09:03 +0000 (17:09 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@112055 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Bitcode/Writer/ValueEnumerator.cpp

index b0964d44536dda703e76a8a9df7210cdcbceb698..587eb5f54cf2db533b1c9beb5a651f9c98fb5b17 100644 (file)
@@ -387,7 +387,7 @@ void ValueEnumerator::EnumerateOperandType(const Value *V) {
       // blockaddress.
       if (isa<BasicBlock>(Op)) continue;
       
-      EnumerateOperandType(cast<Constant>(Op));
+      EnumerateOperandType(Op);
     }
 
     if (const MDNode *N = dyn_cast<MDNode>(V)) {