aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Bitcode/Writer/ValueEnumerator.cpp
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2010-08-24 02:10:52 +0000
committerDan Gohman <gohman@apple.com>2010-08-24 02:10:52 +0000
commit78aeae2d7b771e33c5ff5218802cd2e9dab13df0 (patch)
treecf75130125e1dc0482022287939bb69cc1e6c919 /lib/Bitcode/Writer/ValueEnumerator.cpp
parent9d072f51ebf61edda9c31f831c2642d110170d13 (diff)
downloadexternal_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/Writer/ValueEnumerator.cpp')
-rw-r--r--lib/Bitcode/Writer/ValueEnumerator.cpp2
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) {