diff options
author | Dan Gohman <gohman@apple.com> | 2010-08-25 17:09:03 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2010-08-25 17:09:03 +0000 |
commit | 9cfe532ae5669276243f7ce349d8baa00ad4da7d (patch) | |
tree | 5956ccfb628e956e9e08ae3d0cf5da9ad8c9ef65 /llvm/lib/Bitcode/Writer | |
parent | 115837041ea24c3a6f7413ee7aaf4ebfbd26a645 (diff) | |
download | bcm5719-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.cpp | 2 |
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)) { |