forked from OSchip/llvm-project
797afe3a4e
source expressions when iterating over a PseudoObjectExpr's semantic subexpression list. Previously the loop in emitPseudoObjectExpr would emit the IR for each OpaqueValueExpr that was in a PseudoObjectExpr's semantic-form expression list and use the result when the OpaqueValueExpr later appeared in other expressions. This caused an assertion failure when AggExprEmitter tried to copy the result of an OpaqueValueExpr and the copied type didn't have trivial copy/move constructors or assignment operators. This patch adds flag IsUnique to OpaqueValueExpr which indicates it is a unique reference to its source expression (it is not used in multiple places). The loop in emitPseudoObjectExpr ignores OpaqueValueExprs that are unique and CodeGen visitors simply traverse the source expressions of such OpaqueValueExprs. rdar://problem/34363596 Differential Revision: https://reviews.llvm.org/D39562 llvm-svn: 327939 |
||
---|---|---|
.. | ||
Inputs | ||
2007-10-03-MetadataPointers.mm | ||
2010-08-04-Template.mm | ||
2010-08-06-X.Y-syntax.mm | ||
address-safety-attr.mm | ||
arc-attrs-abi.mm | ||
arc-attrs.mm | ||
arc-blocks.mm | ||
arc-constexpr.mm | ||
arc-cxx11-init-list.mm | ||
arc-cxx11-member-init.mm | ||
arc-exceptions.mm | ||
arc-forwarded-lambda-call.mm | ||
arc-globals.mm | ||
arc-indirect.mm | ||
arc-mangle.mm | ||
arc-marker-funclet.mm | ||
arc-move.mm | ||
arc-new-delete.mm | ||
arc-pseudo-destructors.mm | ||
arc-references.mm | ||
arc-returns-inner-reference-ptr.mm | ||
arc-special-member-functions.mm | ||
arc-weak.mm | ||
arc.mm | ||
auto-release-result-assert.mm | ||
block-default-arg.mm | ||
block-id.mm | ||
block-in-template-inst.mm | ||
block-nested-in-lambda.cpp | ||
block-var-layout.mm | ||
blocks.mm | ||
boxing.mm | ||
catch-id-type.mm | ||
copy.mm | ||
copyable-property-object.mm | ||
debug-info-block-capture-this.mm | ||
debug-info-cyclic.mm | ||
debug-info-line.mm | ||
debug-info.mm | ||
designated-initializers.mm | ||
destroy.mm | ||
encode.mm | ||
exception-cxx.mm | ||
exceptions-legacy.mm | ||
exceptions.mm | ||
externally-initialized-selectors.mm | ||
foreach-statement.mm | ||
gc.mm | ||
implementation-in-extern-c.mm | ||
implicit-copy-assign-operator.mm | ||
implicit-copy-constructor.mm | ||
ivar-objects.mm | ||
lambda-expressions.mm | ||
lambda-to-block.mm | ||
literals.mm | ||
lvalue-reference-getter.mm | ||
mangle-blocks.mm | ||
mangle.mm | ||
message-reference.mm | ||
message.mm | ||
method-local-extern-mangle.mm | ||
microsoft-abi-arc-param-order.mm | ||
mrc-weak.mm | ||
msabi-objc-extensions.mm | ||
msabi-objc-types.mm | ||
msabi-stret.mm | ||
nested-ehlocation.mm | ||
nrvo.mm | ||
objc-container-subscripting-1.mm | ||
objc-container-subscripting.mm | ||
objc-weak.mm | ||
objfw-exceptions.mm | ||
personality-abuse.mm | ||
personality.mm | ||
pr14474-gline-tables-only.mm | ||
property-derived-to-base-conv.mm | ||
property-dot-copy-elision.mm | ||
property-dot-copy.mm | ||
property-dot-reference.mm | ||
property-lvalue-capture.mm | ||
property-object-conditional-exp.mm | ||
property-object-reference-1.mm | ||
property-object-reference-2.mm | ||
property-object-reference.mm | ||
property-objects.mm | ||
property-reference.mm | ||
refence-assign-write-barrier.mm | ||
references.mm | ||
return.mm | ||
rtti.mm | ||
selector-expr-lvalue.mm | ||
subst-sel.mm | ||
trivial_abi.mm | ||
unknown-anytype.mm | ||
write-barrier-global-assign.mm |