summaryrefslogtreecommitdiffstats
path: root/llvm/tools/llvm-mca/lib/Context.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/tools/llvm-mca/lib/Context.cpp')
-rw-r--r--llvm/tools/llvm-mca/lib/Context.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/tools/llvm-mca/lib/Context.cpp b/llvm/tools/llvm-mca/lib/Context.cpp
index d472ae3313a..17b992aac9c 100644
--- a/llvm/tools/llvm-mca/lib/Context.cpp
+++ b/llvm/tools/llvm-mca/lib/Context.cpp
@@ -37,7 +37,7 @@ Context::createDefaultPipeline(const PipelineOptions &Opts, InstrBuilder &IB,
auto PRF = llvm::make_unique<RegisterFile>(SM, MRI, Opts.RegisterFileSize);
auto LSU = llvm::make_unique<LSUnit>(SM, Opts.LoadQueueSize,
Opts.StoreQueueSize, Opts.AssumeNoAlias);
- auto HWS = llvm::make_unique<Scheduler>(SM, LSU.get());
+ auto HWS = llvm::make_unique<Scheduler>(SM, *LSU);
// Create the pipeline stages.
auto Fetch = llvm::make_unique<EntryStage>(SrcMgr);
OpenPOWER on IntegriCloud