summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rw-r--r--tools/llvm-mca/LSUnit.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/llvm-mca/LSUnit.cpp b/tools/llvm-mca/LSUnit.cpp
index 4406e30a593..9ee3b617189 100644
--- a/tools/llvm-mca/LSUnit.cpp
+++ b/tools/llvm-mca/LSUnit.cpp
@@ -52,7 +52,7 @@ void LSUnit::assignSQSlot(unsigned Index) {
}
bool LSUnit::reserve(const InstRef &IR) {
- const InstrDesc Desc = IR.getInstruction()->getDesc();
+ const InstrDesc &Desc = IR.getInstruction()->getDesc();
unsigned MayLoad = Desc.MayLoad;
unsigned MayStore = Desc.MayStore;
unsigned IsMemBarrier = Desc.HasSideEffects;