diff options
author | Craig Topper <craig.topper@gmail.com> | 2015-06-06 00:44:45 +0000 |
---|---|---|
committer | Craig Topper <craig.topper@gmail.com> | 2015-06-06 00:44:45 +0000 |
commit | 77411bdfe3fbd39043ec6ebaa28b1361f11e58fa (patch) | |
tree | 52b1f4d43da55c4e379e901caf4722bdebc9644f /lib/TableGen/Record.cpp | |
parent | 02890a5cf3b0e86b9ccad3417bc3de86981e868a (diff) |
[TableGen] Fold variable declarations with their assignments. NFC
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@239205 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/TableGen/Record.cpp')
-rw-r--r-- | lib/TableGen/Record.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/TableGen/Record.cpp b/lib/TableGen/Record.cpp index 6170a37e4ca..bb9e95d68b8 100644 --- a/lib/TableGen/Record.cpp +++ b/lib/TableGen/Record.cpp @@ -936,10 +936,8 @@ static Init *ForeachHelper(Init *LHS, Init *MHS, Init *RHS, RecTy *Type, std::vector<std::pair<Init *, std::string> > args; for (unsigned int i = 0; i < MHSd->getNumArgs(); ++i) { - Init *Arg; - std::string ArgName; - Arg = MHSd->getArg(i); - ArgName = MHSd->getArgName(i); + Init *Arg = MHSd->getArg(i); + std::string ArgName = MHSd->getArgName(i); // Process args Init *Result = EvaluateOperation(RHSo, LHS, Arg, Type, |