summaryrefslogtreecommitdiffstats
path: root/llvm/utils/TableGen/CodeGenDAGPatterns.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/utils/TableGen/CodeGenDAGPatterns.cpp')
-rw-r--r--llvm/utils/TableGen/CodeGenDAGPatterns.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/utils/TableGen/CodeGenDAGPatterns.cpp b/llvm/utils/TableGen/CodeGenDAGPatterns.cpp
index 8b9253499af..52a83100b83 100644
--- a/llvm/utils/TableGen/CodeGenDAGPatterns.cpp
+++ b/llvm/utils/TableGen/CodeGenDAGPatterns.cpp
@@ -4552,9 +4552,8 @@ void CodeGenDAGPatterns::GenerateVariants() {
MatchedPredicates.push_back(Matches);
// Add a new match the same as this pattern.
- unsigned NumPatterns = PatternsToMatch.size();
for (auto &P : MatchedPredicates)
- P.resize(NumPatterns, P[i]);
+ P.push_back(P[i]);
}
LLVM_DEBUG(errs() << "\n");
OpenPOWER on IntegriCloud