From 25a849ca022c0155953c8b94f67ac9e968c19555 Mon Sep 17 00:00:00 2001 From: Craig Topper Date: Sat, 6 Jun 2015 00:44:45 +0000 Subject: [PATCH] [TableGen] Fold variable declarations with their assignments. NFC llvm-svn: 239205 --- llvm/lib/TableGen/Record.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/llvm/lib/TableGen/Record.cpp b/llvm/lib/TableGen/Record.cpp index 6170a37e4ca2..bb9e95d68b82 100644 --- a/llvm/lib/TableGen/Record.cpp +++ b/llvm/lib/TableGen/Record.cpp @@ -936,10 +936,8 @@ static Init *ForeachHelper(Init *LHS, Init *MHS, Init *RHS, RecTy *Type, std::vector > 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,