summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZentrik <Zentrik@users.noreply.github.com>2024-04-08 10:18:59 +0100
committerGitHub <noreply@github.com>2024-04-08 11:18:59 +0200
commitcf7d36fe342c5c5ac39150ca0b4b70a3d17ae66b (patch)
tree4005f3015dbdabfc84a8dd9b3464537084b25d1a
parent221f438af1c1292d787b58da99a5a7b371888456 (diff)
[NFC] Fix misspellings of effects (#87795)
-rw-r--r--clang/lib/StaticAnalyzer/Checkers/StdLibraryFunctionsChecker.cpp2
-rw-r--r--llvm/lib/Transforms/Scalar/NewGVN.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/StaticAnalyzer/Checkers/StdLibraryFunctionsChecker.cpp b/clang/lib/StaticAnalyzer/Checkers/StdLibraryFunctionsChecker.cpp
index 6cc886794581..845a5f9b390d 100644
--- a/clang/lib/StaticAnalyzer/Checkers/StdLibraryFunctionsChecker.cpp
+++ b/clang/lib/StaticAnalyzer/Checkers/StdLibraryFunctionsChecker.cpp
@@ -30,7 +30,7 @@
// was not consciously intended, and therefore it might have been unreachable.
//
// This checker uses eval::Call for modeling pure functions (functions without
-// side effets), for which their `Summary' is a precise model. This avoids
+// side effects), for which their `Summary' is a precise model. This avoids
// unnecessary invalidation passes. Conflicts with other checkers are unlikely
// because if the function has no other effects, other checkers would probably
// never want to improve upon the modeling done by this checker.
diff --git a/llvm/lib/Transforms/Scalar/NewGVN.cpp b/llvm/lib/Transforms/Scalar/NewGVN.cpp
index 9caaf720ec91..056be8629b96 100644
--- a/llvm/lib/Transforms/Scalar/NewGVN.cpp
+++ b/llvm/lib/Transforms/Scalar/NewGVN.cpp
@@ -4019,7 +4019,7 @@ bool NewGVN::eliminateInstructions(Function &F) {
// dominated defs as dead.
if (Def) {
// For anything in this case, what and how we value number
- // guarantees that any side-effets that would have occurred (ie
+ // guarantees that any side-effects that would have occurred (ie
// throwing, etc) can be proven to either still occur (because it's
// dominated by something that has the same side-effects), or never
// occur. Otherwise, we would not have been able to prove it value