diff --git a/clang/lib/AST/Interp/Context.h b/clang/lib/AST/Interp/Context.h --- a/clang/lib/AST/Interp/Context.h +++ b/clang/lib/AST/Interp/Context.h @@ -67,7 +67,7 @@ /// 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 &&R); private: diff --git a/clang/lib/AST/Interp/Interp.h b/clang/lib/AST/Interp/Interp.h --- a/clang/lib/AST/Interp/Interp.h +++ b/clang/lib/AST/Interp/Interp.h @@ -38,7 +38,7 @@ using APInt = llvm::APInt; using APSInt = llvm::APSInt; -/// Convers a value to an APValue. +/// Convert a value to an APValue. template bool ReturnValue(const T &V, APValue &R) { R = V.toAPValue(); return true; @@ -50,7 +50,7 @@ /// 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.