diff --git a/lld/include/lld/Common/Strings.h b/lld/include/lld/Common/Strings.h index 38d93e01c0b95..71126f6150171 100644 --- a/lld/include/lld/Common/Strings.h +++ b/lld/include/lld/Common/Strings.h @@ -32,7 +32,7 @@ void saveBuffer(llvm::StringRef buffer, const llvm::Twine &path); // glob pattern in the sense of GlobPattern. class SingleStringMatcher { public: - // Create a StringPattern from Pattern to be matched exactly irregardless + // Create a StringPattern from Pattern to be matched exactly regardless // of globbing characters if ExactMatch is true. SingleStringMatcher(llvm::StringRef Pattern); @@ -45,8 +45,7 @@ class SingleStringMatcher { } private: - // Whether to do an exact match irregardless of the presence of wildcard - // character. + // Whether to do an exact match regardless of wildcard characters. bool ExactMatch; // GlobPattern object if not doing an exact match.