forked from OSchip/llvm-project
Implement code generation of ChooseExpr for aggregate types.
llvm-svn: 75021
This commit is contained in:
parent
9ca33e8a9f
commit
5b2095ce16
|
@ -102,6 +102,7 @@ public:
|
|||
void VisitObjCKVCRefExpr(ObjCKVCRefExpr *E);
|
||||
|
||||
void VisitConditionalOperator(const ConditionalOperator *CO);
|
||||
void VisitChooseExpr(const ChooseExpr *CE);
|
||||
void VisitInitListExpr(InitListExpr *E);
|
||||
void VisitCXXDefaultArgExpr(CXXDefaultArgExpr *DAE) {
|
||||
Visit(DAE->getExpr());
|
||||
|
@ -295,6 +296,10 @@ void AggExprEmitter::VisitConditionalOperator(const ConditionalOperator *E) {
|
|||
CGF.EmitBlock(ContBlock);
|
||||
}
|
||||
|
||||
void AggExprEmitter::VisitChooseExpr(const ChooseExpr *CE) {
|
||||
Visit(CE->getChosenSubExpr(CGF.getContext()));
|
||||
}
|
||||
|
||||
void AggExprEmitter::VisitVAArgExpr(VAArgExpr *VE) {
|
||||
llvm::Value *ArgValue = CGF.EmitVAListRef(VE->getSubExpr());
|
||||
llvm::Value *ArgPtr = CGF.EmitVAArg(ArgValue, VE->getType());
|
||||
|
|
Loading…
Reference in New Issue