[llvm] r228853 - Add a trackIfUnresolved to DIBuilder::createInheritance(),
Adrian Prantl
aprantl at apple.com
Wed Feb 11 09:45:08 PST 2015
Author: adrian
Date: Wed Feb 11 11:45:08 2015
New Revision: 228853
URL: http://llvm.org/viewvc/llvm-project?rev=228853&view=rev
Log:
Add a trackIfUnresolved to DIBuilder::createInheritance(),
tested via the clang test CodeGenCXX/vtable-holder-self-reference.cpp .
Modified:
llvm/trunk/lib/IR/DIBuilder.cpp
Modified: llvm/trunk/lib/IR/DIBuilder.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/IR/DIBuilder.cpp?rev=228853&r1=228852&r2=228853&view=diff
==============================================================================
--- llvm/trunk/lib/IR/DIBuilder.cpp (original)
+++ llvm/trunk/lib/IR/DIBuilder.cpp Wed Feb 11 11:45:08 2015
@@ -415,7 +415,9 @@ DIDerivedType DIBuilder::createInheritan
.concat(Flags)
.get(VMContext),
nullptr, Ty.getRef(), BaseTy.getRef()};
- return DIDerivedType(MDNode::get(VMContext, Elts));
+ auto R = DIDerivedType(MDNode::get(VMContext, Elts));
+ trackIfUnresolved(R);
+ return R;
}
DIDerivedType DIBuilder::createMemberType(DIDescriptor Scope, StringRef Name,
More information about the llvm-commits
mailing list