summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@gmail.com>2015-06-06 00:44:45 +0000
committerCraig Topper <craig.topper@gmail.com>2015-06-06 00:44:45 +0000
commit25a849ca022c0155953c8b94f67ac9e968c19555 (patch)
tree93c28428ae9fe1cf7cd060a091d45afab9b9507f /llvm/lib
parent6d4e8e3218ef5df5174dfdf29efc5ecee9a5b7ff (diff)
downloadbcm5719-llvm-25a849ca022c0155953c8b94f67ac9e968c19555.tar.gz
bcm5719-llvm-25a849ca022c0155953c8b94f67ac9e968c19555.zip
[TableGen] Fold variable declarations with their assignments. NFC
llvm-svn: 239205
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/TableGen/Record.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/llvm/lib/TableGen/Record.cpp b/llvm/lib/TableGen/Record.cpp
index 6170a37e4ca..bb9e95d68b8 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<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,
OpenPOWER on IntegriCloud