[clang frontend] Make DeclStmt return empty exps

Summary:
Stmt shouldn't have to return anything in res_trans.exps - those results shouldn't be used by parent nodes.
I need this change for another diff but given the risk I decided to put it as separate diff

Reviewed By: jvillard

Differential Revision: D4474936

fbshipit-source-id: 0537749
master
Andrzej Kotulski 8 years ago committed by Facebook Github Bot
parent 2351f767dc
commit b3e9eedd59

@ -1759,7 +1759,7 @@ struct
{ empty_res_trans with { empty_res_trans with
root_nodes = res_trans_tmp.root_nodes; leaf_nodes = []; root_nodes = res_trans_tmp.root_nodes; leaf_nodes = [];
instrs = res_trans_tmp.instrs @ res_trans_vd.instrs; instrs = res_trans_tmp.instrs @ res_trans_vd.instrs;
exps = res_trans_tmp.exps @ res_trans_vd.exps; exps = [];
initd_exps = res_trans_tmp.initd_exps @ res_trans_vd.initd_exps; initd_exps = res_trans_tmp.initd_exps @ res_trans_vd.initd_exps;
} }
| CXXRecordDecl _ :: var_decls' (*C++/C record decl treated in the same way *) | CXXRecordDecl _ :: var_decls' (*C++/C record decl treated in the same way *)

Loading…
Cancel
Save