File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -543,6 +543,8 @@ ElementCount Type::getVectorElementCount() const {
543
543
return cast<VectorType>(this )->getElementCount ();
544
544
}
545
545
546
+ bool Type::isVectorTy () const { return isa<VectorType>(this ); }
547
+
546
548
// / Class to represent pointers.
547
549
class PointerType : public Type {
548
550
explicit PointerType (Type *ElType, unsigned AddrSpace);
Original file line number Diff line number Diff line change @@ -223,7 +223,7 @@ class Type {
223
223
bool isPtrOrPtrVectorTy () const { return getScalarType ()->isPointerTy (); }
224
224
225
225
// / True if this is an instance of VectorType.
226
- bool isVectorTy () const { return getTypeID () == VectorTyID; }
226
+ inline bool isVectorTy () const ;
227
227
228
228
// / Return true if this type could be converted with a lossless BitCast to
229
229
// / type 'Ty'. For example, i8* to i32*. BitCasts are valid for types of the
You can’t perform that action at this time.
0 commit comments