File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -840,7 +840,7 @@ inline constexpr detail::IsaCheckPredicate<Types...> IsaPred{};
840
840
// / in `Types`, or if the value is not present (e.g., nullptr). Example:
841
841
// / ```
842
842
// / SmallVector<Type> myTypes = ...;
843
- // / if (llvm::all_of(myTypes, llvm::IsaAndPresnetPred <VectorType>))
843
+ // / if (llvm::all_of(myTypes, llvm::IsaAndPresentPred <VectorType>))
844
844
// / ...
845
845
// / ```
846
846
template <typename ... Types>
Original file line number Diff line number Diff line change @@ -284,12 +284,13 @@ TEST(CastingTest, dyn_cast_if_present) {
284
284
285
285
TEST (CastingTest, isa_check_predicates) {
286
286
auto IsaFoo = IsaPred<foo>;
287
- auto IsaAndPresentFoo = IsaAndPresentPred<foo>;
288
287
EXPECT_TRUE (IsaFoo (B1));
289
288
EXPECT_TRUE (IsaFoo (B2));
290
289
EXPECT_TRUE (IsaFoo (B3));
291
290
EXPECT_TRUE (IsaPred<foo>(B4));
292
291
EXPECT_TRUE ((IsaPred<foo, bar>(B4)));
292
+
293
+ auto IsaAndPresentFoo = IsaAndPresentPred<foo>;
293
294
EXPECT_TRUE (IsaAndPresentFoo (B2));
294
295
EXPECT_TRUE (IsaAndPresentFoo (B4));
295
296
EXPECT_FALSE (IsaAndPresentPred<foo>(fub ()));
You can’t perform that action at this time.
0 commit comments