From a9ff072fe810e1f4bbd1ef21eb2535ee8cfe6304 Mon Sep 17 00:00:00 2001 From: George Rimar Date: Thu, 1 Sep 2016 08:00:28 +0000 Subject: [LLVM/Support] - Create no-arguments constructor for llvm::Regex This is useful when need to defer the construction, e.g. using Regex as a member of class. Differential revision: https://reviews.llvm.org/D24101 llvm-svn: 280339 --- llvm/lib/Support/Regex.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'llvm/lib/Support') diff --git a/llvm/lib/Support/Regex.cpp b/llvm/lib/Support/Regex.cpp index e8344ef74d9..60ce528e577 100644 --- a/llvm/lib/Support/Regex.cpp +++ b/llvm/lib/Support/Regex.cpp @@ -19,6 +19,8 @@ #include using namespace llvm; +Regex::Regex() : error(REG_BADPAT), preg(nullptr) {} + Regex::Regex(StringRef regex, unsigned Flags) { unsigned flags = 0; preg = new llvm_regex(); -- cgit v1.2.3