From 4ba3e9733388a8ccb557e2b288f986f6ebec5011 Mon Sep 17 00:00:00 2001 From: Fangrui Song Date: Mon, 7 May 2018 05:21:20 +0000 Subject: [PATCH] Fix comment. NFC llvm-svn: 331615 --- llvm/include/llvm/MC/MCInstrDesc.h | 4 ++-- llvm/include/llvm/Support/SMLoc.h | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/llvm/include/llvm/MC/MCInstrDesc.h b/llvm/include/llvm/MC/MCInstrDesc.h index 1cb8934c3d68..b2f621fb491e 100644 --- a/llvm/include/llvm/MC/MCInstrDesc.h +++ b/llvm/include/llvm/MC/MCInstrDesc.h @@ -174,8 +174,8 @@ public: // deprecated due to a "complex" reason, below. int64_t DeprecatedFeature; - // A complex method to determine if a certain is deprecated or not, and return - // the reason for deprecation. + // A complex method to determine if a certain instruction is deprecated or + // not, and return the reason for deprecation. bool (*ComplexDeprecationInfo)(MCInst &, const MCSubtargetInfo &, std::string &); diff --git a/llvm/include/llvm/Support/SMLoc.h b/llvm/include/llvm/Support/SMLoc.h index 5b8be5505540..c74feff378d6 100644 --- a/llvm/include/llvm/Support/SMLoc.h +++ b/llvm/include/llvm/Support/SMLoc.h @@ -44,8 +44,8 @@ public: /// Represents a range in source code. /// /// SMRange is implemented using a half-open range, as is the convention in C++. -/// In the string "abc", the range (1,3] represents the substring "bc", and the -/// range (2,2] represents an empty range between the characters "b" and "c". +/// In the string "abc", the range [1,3) represents the substring "bc", and the +/// range [2,2) represents an empty range between the characters "b" and "c". class SMRange { public: SMLoc Start, End; @@ -54,7 +54,7 @@ public: SMRange(NoneType) {} SMRange(SMLoc St, SMLoc En) : Start(St), End(En) { assert(Start.isValid() == End.isValid() && - "Start and end should either both be valid or both be invalid!"); + "Start and End should either both be valid or both be invalid!"); } bool isValid() const { return Start.isValid(); }