summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Bitcode/Writer
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2010-08-25 17:09:03 +0000
committerDan Gohman <gohman@apple.com>2010-08-25 17:09:03 +0000
commit9cfe532ae5669276243f7ce349d8baa00ad4da7d (patch)
tree5956ccfb628e956e9e08ae3d0cf5da9ad8c9ef65 /llvm/lib/Bitcode/Writer
parent115837041ea24c3a6f7413ee7aaf4ebfbd26a645 (diff)
downloadbcm5719-llvm-9cfe532ae5669276243f7ce349d8baa00ad4da7d.tar.gz
bcm5719-llvm-9cfe532ae5669276243f7ce349d8baa00ad4da7d.zip
Eliminate an unnecessary cast.
llvm-svn: 112055
Diffstat (limited to 'llvm/lib/Bitcode/Writer')
-rw-r--r--llvm/lib/Bitcode/Writer/ValueEnumerator.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Bitcode/Writer/ValueEnumerator.cpp b/llvm/lib/Bitcode/Writer/ValueEnumerator.cpp
index b0964d44536..587eb5f54cf 100644
--- a/llvm/lib/Bitcode/Writer/ValueEnumerator.cpp
+++ b/llvm/lib/Bitcode/Writer/ValueEnumerator.cpp
@@ -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)) {
OpenPOWER on IntegriCloud