diff options
author | Chandler Carruth <chandlerc@gmail.com> | 2016-09-01 09:31:02 +0000 |
---|---|---|
committer | Chandler Carruth <chandlerc@gmail.com> | 2016-09-01 09:31:02 +0000 |
commit | 1ab16f8c2ddbaa1595002efe129c689e6ef8e75f (patch) | |
tree | b412f926b7c0f043f1f8cda530e5f1597bef507c /llvm/lib/Support/Regex.cpp | |
parent | cce9a609fbc5c2d91f2932542981b66991d6b656 (diff) | |
download | llvm-1ab16f8c2ddbaa1595002efe129c689e6ef8e75f.zip llvm-1ab16f8c2ddbaa1595002efe129c689e6ef8e75f.tar.gz llvm-1ab16f8c2ddbaa1595002efe129c689e6ef8e75f.tar.bz2 |
[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
Diffstat (limited to 'llvm/lib/Support/Regex.cpp')
-rw-r--r-- | llvm/lib/Support/Regex.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Support/Regex.cpp b/llvm/lib/Support/Regex.cpp index 60ce528..35641f3 100644 --- a/llvm/lib/Support/Regex.cpp +++ b/llvm/lib/Support/Regex.cpp @@ -19,7 +19,7 @@ #include <string> 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; |