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 | 879d811563565c17a4cad63643128afbc95694dd (patch) | |
tree | f4226e9f62423500dd08e254635f56ce74fef8b9 /lib/Bitcode/Writer | |
parent | 3cc3283fcbb90924196cc38ee5977b35c4ee28b5 (diff) | |
download | external_llvm-879d811563565c17a4cad63643128afbc95694dd.zip external_llvm-879d811563565c17a4cad63643128afbc95694dd.tar.gz external_llvm-879d811563565c17a4cad63643128afbc95694dd.tar.bz2 |
Eliminate an unnecessary cast.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@112055 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Bitcode/Writer')
-rw-r--r-- | lib/Bitcode/Writer/ValueEnumerator.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Bitcode/Writer/ValueEnumerator.cpp b/lib/Bitcode/Writer/ValueEnumerator.cpp index b0964d4..587eb5f 100644 --- a/lib/Bitcode/Writer/ValueEnumerator.cpp +++ b/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)) { |