From: Chris Lattner Date: Wed, 6 Aug 2003 23:01:18 +0000 (+0000) Subject: Ick, add the RIGHT accessor X-Git-Url: http://plrg.eecs.uci.edu/git/?p=oota-llvm.git;a=commitdiff_plain;h=eac56ac0da8afc0648e6eed28f59ce18eceb79d4 Ick, add the RIGHT accessor git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7656 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/support/tools/TableGen/Record.h b/support/tools/TableGen/Record.h index ab485553c0c..b26e13ec8c3 100644 --- a/support/tools/TableGen/Record.h +++ b/support/tools/TableGen/Record.h @@ -601,7 +601,7 @@ public: } Record *getNodeType() const { return NodeTypeDef; } - const std::vector getArgs() const { return Args; } + const std::vector &getArgs() const { return Args; } virtual void print(std::ostream &OS) const; }; diff --git a/utils/TableGen/Record.h b/utils/TableGen/Record.h index ab485553c0c..b26e13ec8c3 100644 --- a/utils/TableGen/Record.h +++ b/utils/TableGen/Record.h @@ -601,7 +601,7 @@ public: } Record *getNodeType() const { return NodeTypeDef; } - const std::vector getArgs() const { return Args; } + const std::vector &getArgs() const { return Args; } virtual void print(std::ostream &OS) const; };