forked from OSchip/llvm-project
CK_UserDefinedConversion is a valid kind when doing copy ctor elision.
llvm-svn: 91695
This commit is contained in:
parent
029707885c
commit
28a133d602
|
@ -580,7 +580,8 @@ CodeGenFunction::EmitCXXConstructExpr(llvm::Value *Dest,
|
|||
|
||||
if (const ImplicitCastExpr *ICE = dyn_cast<ImplicitCastExpr>(Arg)) {
|
||||
assert((ICE->getCastKind() == CastExpr::CK_NoOp ||
|
||||
ICE->getCastKind() == CastExpr::CK_ConstructorConversion) &&
|
||||
ICE->getCastKind() == CastExpr::CK_ConstructorConversion ||
|
||||
ICE->getCastKind() == CastExpr::CK_UserDefinedConversion) &&
|
||||
"Unknown implicit cast kind in constructor elision");
|
||||
Arg = ICE->getSubExpr();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue