aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CodeGenFunction.cpp
diff options
context:
space:
mode:
authorDave Lee <davelee.com@gmail.com>2022-09-01 10:30:38 -0700
committerDave Lee <davelee.com@gmail.com>2022-09-03 10:33:26 -0700
commit75f05fccbbdd91393bdc7b6183b9dd2b1e859f8e (patch)
treeaadb75460ddd60430474ec55788e1b8ea61ad484 /clang/lib/CodeGen/CodeGenFunction.cpp
parent3ad2fe913ae08ca062105731ad2da2eae825c731 (diff)
downloadllvm-75f05fccbbdd91393bdc7b6183b9dd2b1e859f8e.zip
llvm-75f05fccbbdd91393bdc7b6183b9dd2b1e859f8e.tar.gz
llvm-75f05fccbbdd91393bdc7b6183b9dd2b1e859f8e.tar.bz2
[lldb][bindings] Fix module_access handling of regex
Fixes broken support for: `target.module[re.compile("libFoo")]` There were two issues: 1. The type check was expecting `re.SRE_Pattern` 2. The expression to search the module path had a typo In the first case, `re.SRE_Pattern` does not exist in Python 3, and is replaced with `re.Pattern`. While editing this code, I changed the type checks to us `isinstance`, which is the conventional way of type checking. From the docs on `type()`: > The `isinstance()` built-in function is recommended for testing the type of an object, because it takes subclasses into account. Differential Revision: https://reviews.llvm.org/D133130
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.cpp')
0 files changed, 0 insertions, 0 deletions