Skip to content

Commit d74118d

Browse files
committed
Fix typos
1 parent 0ebb22b commit d74118d

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

llvm/include/llvm/Support/Casting.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -840,7 +840,7 @@ inline constexpr detail::IsaCheckPredicate<Types...> IsaPred{};
840840
/// in `Types`, or if the value is not present (e.g., nullptr). Example:
841841
/// ```
842842
/// SmallVector<Type> myTypes = ...;
843-
/// if (llvm::all_of(myTypes, llvm::IsaAndPresnetPred<VectorType>))
843+
/// if (llvm::all_of(myTypes, llvm::IsaAndPresentPred<VectorType>))
844844
/// ...
845845
/// ```
846846
template <typename... Types>

llvm/unittests/Support/Casting.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -284,12 +284,13 @@ TEST(CastingTest, dyn_cast_if_present) {
284284

285285
TEST(CastingTest, isa_check_predicates) {
286286
auto IsaFoo = IsaPred<foo>;
287-
auto IsaAndPresentFoo = IsaAndPresentPred<foo>;
288287
EXPECT_TRUE(IsaFoo(B1));
289288
EXPECT_TRUE(IsaFoo(B2));
290289
EXPECT_TRUE(IsaFoo(B3));
291290
EXPECT_TRUE(IsaPred<foo>(B4));
292291
EXPECT_TRUE((IsaPred<foo, bar>(B4)));
292+
293+
auto IsaAndPresentFoo = IsaAndPresentPred<foo>;
293294
EXPECT_TRUE(IsaAndPresentFoo(B2));
294295
EXPECT_TRUE(IsaAndPresentFoo(B4));
295296
EXPECT_FALSE(IsaAndPresentPred<foo>(fub()));

0 commit comments

Comments
 (0)