Fix typo in two files in Clang, patch by FusionBolt
authorShivam Gupta <shivam98.tkg@gmail.com>
Tue, 31 Aug 2021 07:01:24 +0000 (12:31 +0530)
committerShivam Gupta <shivam98.tkg@gmail.com>
Tue, 31 Aug 2021 07:03:37 +0000 (12:33 +0530)
Reviewed By: xgupta

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

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

index e8238ee..4f25ff9 100644 (file)
@@ -67,7 +67,7 @@ private:
   /// 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:
index d7f9653..a1d90f2 100644 (file)
@@ -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.