================
@@ -274,6 +281,17 @@ bool InstrumentorImpl::instrument() {
   if (!shouldInstrumentTarget())
     return Changed;
 
+  const auto FunctionRegexStr = IConf.FunctionRegex->getString();
+  if (!FunctionRegexStr.empty()) {
+    ParsedFunctionRegex = Regex(FunctionRegexStr);
+    std::string ErrMsg;
+    if (!ParsedFunctionRegex.isValid(ErrMsg)) {
+      IIRB.Ctx.diagnose(DiagnosticInfoInstrumentation(
----------------
arsenm wrote:

missing error test 

https://github.com/llvm/llvm-project/pull/196234
_______________________________________________
llvm-branch-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

Reply via email to