aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/MachineScheduler.cpp
diff options
context:
space:
mode:
authorKazu Hirata <kazu@google.com>2023-06-09 11:00:14 -0700
committerKazu Hirata <kazu@google.com>2023-06-09 11:00:14 -0700
commit62c0bdabfa32f6e32b17b45425b15309db340dfb (patch)
treebc9c6066b785653b00800ee772560761408b7db8 /llvm/lib/CodeGen/MachineScheduler.cpp
parent0258a53521cfedf5cb80c2b1d4a66c942615de74 (diff)
downloadllvm-62c0bdabfa32f6e32b17b45425b15309db340dfb.zip
llvm-62c0bdabfa32f6e32b17b45425b15309db340dfb.tar.gz
llvm-62c0bdabfa32f6e32b17b45425b15309db340dfb.tar.bz2
[CodeGen] Fix a warning in release builds
This patch fixes: llvm/lib/CodeGen/MachineScheduler.cpp:4223:9: error: unused type alias 'IntervalTy' [-Werror,-Wunused-local-typedef]
Diffstat (limited to 'llvm/lib/CodeGen/MachineScheduler.cpp')
-rw-r--r--llvm/lib/CodeGen/MachineScheduler.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/MachineScheduler.cpp b/llvm/lib/CodeGen/MachineScheduler.cpp
index 59248bd..d7ea861 100644
--- a/llvm/lib/CodeGen/MachineScheduler.cpp
+++ b/llvm/lib/CodeGen/MachineScheduler.cpp
@@ -4220,11 +4220,10 @@ unsigned ResourceSegments::getFirstAvailableAt(
void ResourceSegments::add(ResourceSegments::IntervalTy A,
const unsigned CutOff) {
- using IntervalTy = ResourceSegments::IntervalTy;
assert(A.first < A.second && "Cannot add empty resource usage");
assert(CutOff > 0 && "0-size interval history has no use.");
assert(all_of(_Intervals,
- [&A](const IntervalTy &Interval) -> bool {
+ [&A](const ResourceSegments::IntervalTy &Interval) -> bool {
return !intersects(A, Interval);
}) &&
"A resource is being overwritten");