summaryrefslogtreecommitdiff
path: root/TAO/TAO_IDL/be/be_visitor_union_branch/cdr_op_cs.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/TAO_IDL/be/be_visitor_union_branch/cdr_op_cs.cpp')
-rw-r--r--TAO/TAO_IDL/be/be_visitor_union_branch/cdr_op_cs.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/TAO/TAO_IDL/be/be_visitor_union_branch/cdr_op_cs.cpp b/TAO/TAO_IDL/be/be_visitor_union_branch/cdr_op_cs.cpp
index dd2990bacba..6505411703f 100644
--- a/TAO/TAO_IDL/be/be_visitor_union_branch/cdr_op_cs.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_union_branch/cdr_op_cs.cpp
@@ -500,7 +500,8 @@ be_visitor_union_branch_cdr_op_cs::visit_predefined_type (
switch (this->ctx_->sub_state ())
{
case TAO_CodeGen::TAO_CDR_INPUT:
- if (pt == AST_PredefinedType::PT_object)
+ if (pt == AST_PredefinedType::PT_object
+ || pt == AST_PredefinedType::PT_abstract)
{
*os << "::CORBA::Object_var _tao_union_tmp;" << be_nl;