aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/AssignmentTrackingAnalysis.cpp
diff options
context:
space:
mode:
authorSergei Barannikov <barannikov88@gmail.com>2024-08-12 21:46:47 +0300
committerGitHub <noreply@github.com>2024-08-12 21:46:47 +0300
commite26b42c70d37cbea47016984e1d2bfc347fb8818 (patch)
tree9c343f36baff1bf612064802c0d96c20b3e3eac4 /llvm/lib/CodeGen/AssignmentTrackingAnalysis.cpp
parentb812e57ac301c7f88171cc73e213b70078727b16 (diff)
downloadllvm-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