From 1ab16f8c2ddbaa1595002efe129c689e6ef8e75f Mon Sep 17 00:00:00 2001 From: Chandler Carruth Date: Thu, 1 Sep 2016 09:31:02 +0000 Subject: [Support] Fix a warning introduced in r280339 due to the member initializers not being in the same order as the members. Specifically, 'preg' is the first member followed by 'error', so they will be initialized in that order and should be written in the member initializer list in that order. For the constructor in question, there is no change in behavior. llvm-svn: 280345 --- llvm/lib/Support/Regex.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/lib/Support') diff --git a/llvm/lib/Support/Regex.cpp b/llvm/lib/Support/Regex.cpp index 60ce528e577..35641f3b7cb 100644 --- a/llvm/lib/Support/Regex.cpp +++ b/llvm/lib/Support/Regex.cpp @@ -19,7 +19,7 @@ #include using namespace llvm; -Regex::Regex() : error(REG_BADPAT), preg(nullptr) {} +Regex::Regex() : preg(nullptr), error(REG_BADPAT) {} Regex::Regex(StringRef regex, unsigned Flags) { unsigned flags = 0; -- cgit v1.2.3