summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Bitcode
diff options
context:
space:
mode:
authorJonas Devlieghere <jonas@devlieghere.com>2018-09-21 12:03:14 +0000
committerJonas Devlieghere <jonas@devlieghere.com>2018-09-21 12:03:14 +0000
commita0c9cb1913d14bfcae8c102d2245f73f103f39af (patch)
tree9452dcc0a9eed683bdf3425feb8e59fc0302d677 /llvm/lib/Bitcode
parent907ed15f998bab7e2e11b32eb02db83fe7272cbb (diff)
downloadbcm5719-llvm-a0c9cb1913d14bfcae8c102d2245f73f103f39af.tar.gz
bcm5719-llvm-a0c9cb1913d14bfcae8c102d2245f73f103f39af.zip
Ensure that variant part discriminator is read by MetadataLoader
https://reviews.llvm.org/D42082 introduced variant parts to debug info in LLVM. Subsequent work on the Rust compiler has found a bug in that patch; namely, there is a path in MetadataLoader that fails to restore the discriminator. This patch fixes the bug. Patch by: Tom Tromey Differential revision: https://reviews.llvm.org/D52340 llvm-svn: 342725
Diffstat (limited to 'llvm/lib/Bitcode')
-rw-r--r--llvm/lib/Bitcode/Reader/MetadataLoader.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Bitcode/Reader/MetadataLoader.cpp b/llvm/lib/Bitcode/Reader/MetadataLoader.cpp
index 3fe7d220563..4781cfe3dea 100644
--- a/llvm/lib/Bitcode/Reader/MetadataLoader.cpp
+++ b/llvm/lib/Bitcode/Reader/MetadataLoader.cpp
@@ -1313,7 +1313,7 @@ Error MetadataLoader::MetadataLoaderImpl::parseOneMetadata(
(Context, Tag, Name, File, Line, Scope, BaseType,
SizeInBits, AlignInBits, OffsetInBits, Flags,
Elements, RuntimeLang, VTableHolder, TemplateParams,
- Identifier));
+ Identifier, Discriminator));
if (!IsNotUsedInTypeRef && Identifier)
MetadataList.addTypeRef(*Identifier, *cast<DICompositeType>(CT));
OpenPOWER on IntegriCloud