forked from OSchip/llvm-project
This doesn't seem to be used code as it didn't break any tests, but fix the
glaring logic bug anyways. =D llvm-svn: 95533
This commit is contained in:
parent
bb3f887a85
commit
794da4c236
|
@ -4510,7 +4510,7 @@ TreeTransform<Derived>::TransformCXXDefaultArgExpr(CXXDefaultArgExpr *E) {
|
|||
if (!Param)
|
||||
return SemaRef.ExprError();
|
||||
|
||||
if (getDerived().AlwaysRebuild() &&
|
||||
if (!getDerived().AlwaysRebuild() &&
|
||||
Param == E->getParam())
|
||||
return SemaRef.Owned(E->Retain());
|
||||
|
||||
|
|
Loading…
Reference in New Issue