Skip to content

Commit ba355c0

Browse files
committed
AS
1 parent 6404e9b commit ba355c0

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

llvm/include/llvm/CodeGen/LiveDebugValuesPass.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
namespace llvm {
1515

1616
class LiveDebugValuesPass : public PassInfoMixin<LiveDebugValuesPass> {
17-
bool ShouldEmitDebugEntryValues;
17+
const bool ShouldEmitDebugEntryValues;
1818

1919
public:
2020
LiveDebugValuesPass(bool ShouldEmitDebugEntryValues)

llvm/lib/CodeGen/LiveDebugValues/LiveDebugValues.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,8 +128,7 @@ void LiveDebugValuesPass::printPipeline(
128128
}
129129

130130
bool LiveDebugValuesLegacy::runOnMachineFunction(MachineFunction &MF) {
131-
auto *TPC = getAnalysisIfAvailable<TargetPassConfig>();
132-
assert(TPC && "TargetPassConfig must be available");
131+
auto *TPC = &getAnalysis<TargetPassConfig>();
133132
return LiveDebugValues().run(
134133
MF, TPC->getTM<TargetMachine>().Options.ShouldEmitDebugEntryValues());
135134
}

0 commit comments

Comments
 (0)