1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2025-01-31 12:41:49 +01:00

[llvm-mca] Fix parameter name. NFC.

llvm-svn: 340570
This commit is contained in:
Walter Lee 2018-08-23 20:17:42 +00:00
parent e17d15a8af
commit 4105a127d9

View File

@ -117,8 +117,8 @@ ResourceManager::ResourceManager(const llvm::MCSchedModel &SM)
}
void ResourceManager::setCustomStrategyImpl(std::unique_ptr<ResourceStrategy> S,
uint64_t ResourceID) {
unsigned Index = getResourceStateIndex(ResourceID);
uint64_t ResourceMask) {
unsigned Index = getResourceStateIndex(ResourceMask);
assert(Index < Resources.size() && "Invalid processor resource index!");
assert(S && "Unexpected null strategy in input!");
Strategies[Index] = std::move(S);