[PATCH] D34341: [TableGen] Fix bug in TableGen CodeGenPatterns when adding variants of the patterns.
Ayman Musa via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Jun 27 00:10:46 PDT 2017
This revision was automatically updated to reflect the committed changes.
Closed by commit rL306371: [TableGen] Fix bug in TableGen CodeGenPatterns when adding variants of theā¦ (authored by aymanmus).
Changed prior to commit:
https://reviews.llvm.org/D34341?vs=103346&id=104099#toc
Repository:
rL LLVM
https://reviews.llvm.org/D34341
Files:
llvm/trunk/utils/TableGen/CodeGenDAGPatterns.cpp
Index: llvm/trunk/utils/TableGen/CodeGenDAGPatterns.cpp
===================================================================
--- llvm/trunk/utils/TableGen/CodeGenDAGPatterns.cpp
+++ llvm/trunk/utils/TableGen/CodeGenDAGPatterns.cpp
@@ -3837,11 +3837,11 @@
if (AlreadyExists) continue;
// Otherwise, add it to the list of patterns we have.
- PatternsToMatch.emplace_back(
+ PatternsToMatch.push_back(PatternToMatch(
PatternsToMatch[i].getSrcRecord(), PatternsToMatch[i].getPredicates(),
Variant, PatternsToMatch[i].getDstPattern(),
PatternsToMatch[i].getDstRegs(),
- PatternsToMatch[i].getAddedComplexity(), Record::getNewUID());
+ PatternsToMatch[i].getAddedComplexity(), Record::getNewUID()));
}
DEBUG(errs() << "\n");
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D34341.104099.patch
Type: text/x-patch
Size: 807 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170627/2abef65b/attachment.bin>
More information about the llvm-commits
mailing list