[PATCH] D98254: Fix typo in two files in Clang
Shivam Gupta via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Aug 31 00:04:04 PDT 2021
This revision was automatically updated to reflect the committed changes.
Closed by commit rGe01ac501af20: Fix typo in two files in Clang, patch by FusionBolt (authored by xgupta).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D98254/new/
https://reviews.llvm.org/D98254
Files:
clang/lib/AST/Interp/Context.h
clang/lib/AST/Interp/Interp.h
Index: clang/lib/AST/Interp/Interp.h
===================================================================
--- clang/lib/AST/Interp/Interp.h
+++ 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 <typename T> 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.
Index: clang/lib/AST/Interp/Context.h
===================================================================
--- clang/lib/AST/Interp/Context.h
+++ 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<bool> &&R);
private:
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D98254.369639.patch
Type: text/x-patch
Size: 1225 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20210831/f9506ba7/attachment.bin>
More information about the cfe-commits
mailing list