From b9ca6dcc6bd65c1d3c636e2e0cabeb56ef975e49 Mon Sep 17 00:00:00 2001 From: Sanjoy Das Date: Tue, 10 Nov 2015 20:13:15 +0000 Subject: [OperandBundles] Identify operand bundles with both their names and IDs No code uses this functionality yet. This change just exposes information / structure that was already present. llvm-svn: 252644 --- llvm/lib/Bitcode/Writer/BitcodeWriter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/lib/Bitcode/Writer/BitcodeWriter.cpp') diff --git a/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp b/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp index b5b79b2..845bbfb 100644 --- a/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp +++ b/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp @@ -1739,7 +1739,7 @@ static void WriteOperandBundles(BitstreamWriter &Stream, ImmutableCallSite CS, for (unsigned i = 0, e = CS.getNumOperandBundles(); i != e; ++i) { const auto &Bundle = CS.getOperandBundleAt(i); - Record.push_back(C.getOperandBundleTagID(Bundle.Tag)); + Record.push_back(C.getOperandBundleTagID(Bundle.getTagName())); for (auto &Input : Bundle.Inputs) PushValueAndType(Input, InstID, Record, VE); -- cgit v1.1