diff options
author | Dan Gohman <gohman@apple.com> | 2010-08-24 02:10:52 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2010-08-24 02:10:52 +0000 |
commit | 78aeae2d7b771e33c5ff5218802cd2e9dab13df0 (patch) | |
tree | cf75130125e1dc0482022287939bb69cc1e6c919 /lib/Bitcode | |
parent | 9d072f51ebf61edda9c31f831c2642d110170d13 (diff) | |
download | external_llvm-78aeae2d7b771e33c5ff5218802cd2e9dab13df0.zip external_llvm-78aeae2d7b771e33c5ff5218802cd2e9dab13df0.tar.gz external_llvm-78aeae2d7b771e33c5ff5218802cd2e9dab13df0.tar.bz2 |
When we know we have an MDValue or MDString, call EnumerateMetadata
directly instead of going through EnumerateValue.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@111894 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Bitcode')
-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 edd41ed..043a65d 100644 --- a/lib/Bitcode/Writer/ValueEnumerator.cpp +++ b/lib/Bitcode/Writer/ValueEnumerator.cpp @@ -352,7 +352,7 @@ void ValueEnumerator::EnumerateOperandType(const Value *V) { EnumerateOperandType(Elem); } } else if (isa<MDString>(V) || isa<MDNode>(V)) - EnumerateValue(V); + EnumerateMetadata(V); } void ValueEnumerator::EnumerateAttributes(const AttrListPtr &PAL) { |