File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed
lib/CodeGen/LiveDebugValues Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change 14
14
namespace llvm {
15
15
16
16
class LiveDebugValuesPass : public PassInfoMixin <LiveDebugValuesPass> {
17
- bool ShouldEmitDebugEntryValues;
17
+ const bool ShouldEmitDebugEntryValues;
18
18
19
19
public:
20
20
LiveDebugValuesPass (bool ShouldEmitDebugEntryValues)
Original file line number Diff line number Diff line change @@ -128,8 +128,7 @@ void LiveDebugValuesPass::printPipeline(
128
128
}
129
129
130
130
bool LiveDebugValuesLegacy::runOnMachineFunction (MachineFunction &MF) {
131
- auto *TPC = getAnalysisIfAvailable<TargetPassConfig>();
132
- assert (TPC && " TargetPassConfig must be available" );
131
+ auto *TPC = &getAnalysis<TargetPassConfig>();
133
132
return LiveDebugValues ().run (
134
133
MF, TPC->getTM <TargetMachine>().Options .ShouldEmitDebugEntryValues ());
135
134
}
You can’t perform that action at this time.
0 commit comments