Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
qiaojbao committed Aug 28, 2024
1 parent 785bd88 commit 689c795
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 1 addition & 2 deletions lgc/patch/LowerPopsInterlock.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,7 @@ PreservedAnalyses LowerPopsInterlock::run(Function &func, FunctionAnalysisManage
m_pipelineState = moduleAnalysisManager.getCachedResult<PipelineStateWrapper>(*func.getParent())->getPipelineState();
m_entryPoint = &func;

BuilderBase builder(m_pipelineState->getContext());
m_builder = &builder;
m_builder = new BuilderBase(m_pipelineState->getContext());

legalizeInterlock(funcAnalysisManager);
lowerInterlock();
Expand Down
2 changes: 2 additions & 0 deletions lgc/patch/LowerPopsInterlock.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ class LowerPopsInterlock : public llvm::PassInfoMixin<LowerPopsInterlock> {

static llvm::StringRef name() { return "Lower POPS interlock operations"; }

~LowerPopsInterlock() { delete m_builder; }

private:
void legalizeInterlock(llvm::FunctionAnalysisManager &funcAnalysisManager);
void collectBeginInterlock(PopsBeginInterlockOp &popsBeginInterlockOp);
Expand Down

0 comments on commit 689c795

Please sign in to comment.