[PATCH] D29349: Fix the bitcode upgrade for DIGlobalVariable in a DIImportedEntity context.

Adrian Prantl via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jan 31 14:07:31 PST 2017


aprantl created this revision.

The bitcode upgrade for DIGlobalVariable unconditionally wrapped DIGlobalVariables in a DIGlobalVariableExpression. When a DIGlobalVariable is referenced by a DIImportedEntity, however, this is wrong. This patch fixes the bitcode upgrade by deferring the creation of DIGlobalVariableExpressions until we know the context of the DIGlobalVariable.

rdar://problem/30134279


https://reviews.llvm.org/D29349

Files:
  lib/Bitcode/Reader/MetadataLoader.cpp
  test/Bitcode/DIGlobalVariableExpression.ll
  test/Bitcode/DIGlobalVariableExpression.ll.bc
  test/Bitcode/dityperefs-3.8.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D29349.86494.patch
Type: text/x-patch
Size: 7832 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170131/a8bd04ca/attachment.bin>


More information about the llvm-commits mailing list