From 5224b5a0c9a181e96b71e5e51070c1e83e7cdb73 Mon Sep 17 00:00:00 2001 From: Tim Northover Date: Wed, 9 Nov 2016 22:40:02 +0000 Subject: [PATCH] GlobalISel: fix typo. NFC git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@286408 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/CodeGen/GlobalISel/RegisterBankInfo.h | 4 ++-- lib/CodeGen/GlobalISel/RegisterBankInfo.cpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/include/llvm/CodeGen/GlobalISel/RegisterBankInfo.h b/include/llvm/CodeGen/GlobalISel/RegisterBankInfo.h index 3bc6ba1f3f5..9a7bbd92e06 100644 --- a/include/llvm/CodeGen/GlobalISel/RegisterBankInfo.h +++ b/include/llvm/CodeGen/GlobalISel/RegisterBankInfo.h @@ -161,11 +161,11 @@ public: bool isValid() const { return BreakDown && NumBreakDowns; } /// Verify that this mapping makes sense for a value of - /// \p MeaningFulBitWidth. + /// \p MeaningfulBitWidth. /// \note This method does not check anything when assertions are disabled. /// /// \return True is the check was successful. - bool verify(unsigned MeaningFulBitWidth) const; + bool verify(unsigned MeaningfulBitWidth) const; /// Print this on dbgs() stream. void dump() const; diff --git a/lib/CodeGen/GlobalISel/RegisterBankInfo.cpp b/lib/CodeGen/GlobalISel/RegisterBankInfo.cpp index 409c756974d..3070a2e6749 100644 --- a/lib/CodeGen/GlobalISel/RegisterBankInfo.cpp +++ b/lib/CodeGen/GlobalISel/RegisterBankInfo.cpp @@ -523,7 +523,7 @@ void RegisterBankInfo::PartialMapping::print(raw_ostream &OS) const { OS << "nullptr"; } -bool RegisterBankInfo::ValueMapping::verify(unsigned MeaningFulBitWidth) const { +bool RegisterBankInfo::ValueMapping::verify(unsigned MeaningfulBitWidth) const { assert(NumBreakDowns && "Value mapped nowhere?!"); unsigned OrigValueBitWidth = 0; for (const RegisterBankInfo::PartialMapping &PartMap : *this) { @@ -535,7 +535,7 @@ bool RegisterBankInfo::ValueMapping::verify(unsigned MeaningFulBitWidth) const { OrigValueBitWidth = std::max(OrigValueBitWidth, PartMap.getHighBitIdx() + 1); } - assert(OrigValueBitWidth >= MeaningFulBitWidth && + assert(OrigValueBitWidth >= MeaningfulBitWidth && "Meaningful bits not covered by the mapping"); APInt ValueMask(OrigValueBitWidth, 0); for (const RegisterBankInfo::PartialMapping &PartMap : *this) { -- 2.40.0