diff options
author | Sergei Barannikov <barannikov88@gmail.com> | 2024-08-12 21:46:47 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-08-12 21:46:47 +0300 |
commit | e26b42c70d37cbea47016984e1d2bfc347fb8818 (patch) | |
tree | 9c343f36baff1bf612064802c0d96c20b3e3eac4 /llvm/lib/CodeGen/AssignmentTrackingAnalysis.cpp | |
parent | b812e57ac301c7f88171cc73e213b70078727b16 (diff) | |
download | llvm-e26b42c70d37cbea47016984e1d2bfc347fb8818.zip llvm-e26b42c70d37cbea47016984e1d2bfc347fb8818.tar.gz llvm-e26b42c70d37cbea47016984e1d2bfc347fb8818.tar.bz2 |
[lldb] Avoid calling DataLayout constructor accepting Module pointer (NFC) (#102839)
The constructor initializes `*this` with a copy of `M->getDataLayout()`,
which can just be spelled as `DataLayout DL = M->getDataLayout()`. In
all places where the constructor is used, Module outlives DataLayout, so
store a reference to it instead of cloning.
Pull Request: https://github.com/llvm/llvm-project/pull/102839
Diffstat (limited to 'llvm/lib/CodeGen/AssignmentTrackingAnalysis.cpp')
0 files changed, 0 insertions, 0 deletions