aboutsummaryrefslogtreecommitdiff
path: root/llvm/include/llvm/CodeGen/IndirectBrExpand.h
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/include/llvm/CodeGen/IndirectBrExpand.h')
-rw-r--r--llvm/include/llvm/CodeGen/IndirectBrExpand.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/include/llvm/CodeGen/IndirectBrExpand.h b/llvm/include/llvm/CodeGen/IndirectBrExpand.h
index f7d9d5d..572a712 100644
--- a/llvm/include/llvm/CodeGen/IndirectBrExpand.h
+++ b/llvm/include/llvm/CodeGen/IndirectBrExpand.h
@@ -19,7 +19,7 @@ class IndirectBrExpandPass : public PassInfoMixin<IndirectBrExpandPass> {
const TargetMachine *TM;
public:
- IndirectBrExpandPass(const TargetMachine *TM) : TM(TM) {}
+ IndirectBrExpandPass(const TargetMachine &TM) : TM(&TM) {}
PreservedAnalyses run(Function &F, FunctionAnalysisManager &FAM);
};