projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
02890a5
)
[TableGen] Fold variable declarations with their assignments. NFC
author
Craig Topper
<craig.topper@gmail.com>
Sat, 6 Jun 2015 00:44:45 +0000
(
00:44
+0000)
committer
Craig Topper
<craig.topper@gmail.com>
Sat, 6 Jun 2015 00:44:45 +0000
(
00:44
+0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@239205
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/TableGen/Record.cpp
patch
|
blob
|
history
diff --git
a/lib/TableGen/Record.cpp
b/lib/TableGen/Record.cpp
index 6170a37e4ca28b45de29810a0ccc4233ca224586..bb9e95d68b82bebba85c5d2b7271144d01eff61d 100644
(file)
--- 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,