diff options
author | Mircea Trofin <mtrofin@google.com> | 2020-04-10 08:16:49 -0700 |
---|---|---|
committer | Mircea Trofin <mtrofin@google.com> | 2020-04-10 15:28:53 -0700 |
commit | da9bcdaad9b603de4f0eea4509c38f30b1f4dc36 (patch) | |
tree | 8670ff14aa9e3010d391c429dba5af71fbfc6f39 /llvm/lib/CodeGen/MachineStripDebug.cpp | |
parent | dfca98d6a83c725db38a20c06df92f1b2b9ce16b (diff) | |
download | llvm-da9bcdaad9b603de4f0eea4509c38f30b1f4dc36.zip llvm-da9bcdaad9b603de4f0eea4509c38f30b1f4dc36.tar.gz llvm-da9bcdaad9b603de4f0eea4509c38f30b1f4dc36.tar.bz2 |
[llvm][NFC] Inliner.cpp: ensure InlineHistory ID is always initialized;
Summary:
The inline history is associated with a call site. There are two locations
we fetch inline history. In one, we fetch it together with the call
site. In the other, we initialize it under certain conditions, use it
later under same conditions (different if check), and otherwise is
uninitialized. Although currently there is no uninitialized use, the
code is more challenging to maintain correctly, than if the value were
always initialized.
Changed to the upfront initialization pattern already present in this
file.
Reviewers: davidxl, dblaikie
Subscribers: eraman, hiraditya, llvm-commits
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D77877
Diffstat (limited to 'llvm/lib/CodeGen/MachineStripDebug.cpp')
0 files changed, 0 insertions, 0 deletions