Matej =?utf-8?q?Košík?= <[email protected]>,
Matej =?utf-8?q?Košík?= <[email protected]>
Message-ID:
In-Reply-To: <llvm.org/llvm/llvm-project/pull/[email protected]>
================
@@ -5495,6 +5498,17 @@
TypeSystemClang::GetNumChildren(lldb::opaque_compiler_type_t type,
}
CompilerType TypeSystemClang::GetBuiltinTypeByName(ConstString name) {
+ StringRef name_ref = name.GetStringRef();
+ llvm::Regex re("^(unsigned )?_BitInt\\((.*)\\)$");
----------------
adrian-prantl wrote:
Should we wrap this in a `if (!name_ref.empty() && (name_ref[0] == '_' ||
name_ref[0] == '(')` to avoid compiling the regex every time?
https://github.com/llvm/llvm-project/pull/165857
_______________________________________________
lldb-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits