[clang] e01ac50 - Fix typo in two files in Clang, patch by FusionBolt

Shivam Gupta via cfe-commits cfe-commits at lists.llvm.org
Tue Aug 31 00:03:54 PDT 2021


Author: Shivam Gupta
Date: 2021-08-31T12:33:37+05:30
New Revision: e01ac501af20cdbbc199f4f4ac31111e6d705442

URL: https://github.com/llvm/llvm-project/commit/e01ac501af20cdbbc199f4f4ac31111e6d705442
DIFF: https://github.com/llvm/llvm-project/commit/e01ac501af20cdbbc199f4f4ac31111e6d705442.diff

LOG: Fix typo in two files in Clang, patch by FusionBolt

Reviewed By: xgupta

Differential Revision: https://reviews.llvm.org/D98254

Added: 
    

Modified: 
    clang/lib/AST/Interp/Context.h
    clang/lib/AST/Interp/Interp.h

Removed: 
    


################################################################################
diff  --git a/clang/lib/AST/Interp/Context.h b/clang/lib/AST/Interp/Context.h
index e8238eea716a1..4f25ff977b81d 100644
--- a/clang/lib/AST/Interp/Context.h
+++ b/clang/lib/AST/Interp/Context.h
@@ -67,7 +67,7 @@ class Context {
   /// Runs a function.
   bool Run(State &Parent, Function *Func, APValue &Result);
 
-  /// Checks a result fromt the interpreter.
+  /// Checks a result from the interpreter.
   bool Check(State &Parent, llvm::Expected<bool> &&R);
 
 private:

diff  --git a/clang/lib/AST/Interp/Interp.h b/clang/lib/AST/Interp/Interp.h
index d7f9653be2e62..a1d90f26ba464 100644
--- a/clang/lib/AST/Interp/Interp.h
+++ b/clang/lib/AST/Interp/Interp.h
@@ -38,7 +38,7 @@ namespace interp {
 using APInt = llvm::APInt;
 using APSInt = llvm::APSInt;
 
-/// Convers a value to an APValue.
+/// Convert a value to an APValue.
 template <typename T> bool ReturnValue(const T &V, APValue &R) {
   R = V.toAPValue();
   return true;
@@ -50,7 +50,7 @@ bool CheckExtern(InterpState &S, CodePtr OpPC, const Pointer &Ptr);
 /// Checks if the array is offsetable.
 bool CheckArray(InterpState &S, CodePtr OpPC, const Pointer &Ptr);
 
-/// Checks if a pointer is live and accesible.
+/// Checks if a pointer is live and accessible.
 bool CheckLive(InterpState &S, CodePtr OpPC, const Pointer &Ptr,
                AccessKinds AK);
 /// Checks if a pointer is null.


        


More information about the cfe-commits mailing list