зеркало из https://github.com/microsoft/clang-1.git
8ae4ec2845
was mistakenly classifying dynamic_casts which might throw as having no side effects. Switch it from a visitor to a switch, so it is kept up-to-date as future Expr nodes are added. Move it from ExprConstant.cpp to Expr.cpp, since it's not really related to constant expression evaluation. Since we use HasSideEffect to determine whether to emit an unused global with internal linkage, this has the effect of suppressing emission of globals in some cases. I've left many of the Objective-C cases conservatively assuming that the expression has side-effects. I'll leave it to someone with better knowledge of Objective-C than mine to improve them. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@161388 91177308-0d34-0410-b5e6-96231b3b80d8 |
||
---|---|---|
.. | ||
Inputs | ||
2007-10-03-MetadataPointers.mm | ||
2010-08-04-Template.mm | ||
2010-08-06-X.Y-syntax.mm | ||
address-safety-attr.mm | ||
arc-exceptions.mm | ||
arc-globals.mm | ||
arc-mangle.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.mm | ||
block-in-template-inst.mm | ||
block-var-layout.mm | ||
blocks.mm | ||
catch-id-type.mm | ||
copy.mm | ||
copyable-property-object.mm | ||
debug-info.mm | ||
encode.mm | ||
exceptions.mm | ||
foreach-statement.mm | ||
gc.mm | ||
implicit-copy-assign-operator.mm | ||
implicit-copy-constructor.mm | ||
ivar-objects.mm | ||
lambda-expressions.mm | ||
literals.mm | ||
lvalue-reference-getter.mm | ||
mangle-blocks.mm | ||
mangle.mm | ||
message-reference.mm | ||
method-local-extern-mangle.mm | ||
nrvo.mm | ||
objc-container-subscripting-1.mm | ||
objc-container-subscripting.mm | ||
property-derived-to-base-conv.mm | ||
property-dot-copy.mm | ||
property-dot-reference.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 | ||
rtti.mm | ||
selector-expr-lvalue.mm | ||
write-barrier-global-assign.mm |