aboutsummaryrefslogtreecommitdiff
path: root/llvm/utils/FileCheck/FileCheck.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/utils/FileCheck/FileCheck.cpp')
-rw-r--r--llvm/utils/FileCheck/FileCheck.cpp9
1 files changed, 3 insertions, 6 deletions
diff --git a/llvm/utils/FileCheck/FileCheck.cpp b/llvm/utils/FileCheck/FileCheck.cpp
index be27756..d59607a 100644
--- a/llvm/utils/FileCheck/FileCheck.cpp
+++ b/llvm/utils/FileCheck/FileCheck.cpp
@@ -745,14 +745,11 @@ int main(int argc, char **argv) {
}
FileCheckRequest Req;
- for (StringRef Prefix : CheckPrefixes)
- Req.CheckPrefixes.push_back(Prefix);
+ append_range(Req.CheckPrefixes, CheckPrefixes);
- for (StringRef Prefix : CommentPrefixes)
- Req.CommentPrefixes.push_back(Prefix);
+ append_range(Req.CommentPrefixes, CommentPrefixes);
- for (StringRef CheckNot : ImplicitCheckNot)
- Req.ImplicitCheckNot.push_back(CheckNot);
+ append_range(Req.ImplicitCheckNot, ImplicitCheckNot);
bool GlobalDefineError = false;
for (StringRef G : GlobalDefines) {