diff options
author | Christopher Tetreault <ctetreau@quicinc.com> | 2020-04-13 12:30:53 -0700 |
---|---|---|
committer | Christopher Tetreault <ctetreau@quicinc.com> | 2020-04-13 13:01:40 -0700 |
commit | f22fbe3a152ed1e7712c6580405cb28db00187a5 (patch) | |
tree | 64206a29bc0eed1255459382dea5cb6571251e3f /clang/lib/CodeGen/TargetInfo.cpp | |
parent | 840a23b0b5c74e439461564ffa63370991a67ad5 (diff) | |
download | llvm-f22fbe3a152ed1e7712c6580405cb28db00187a5.zip llvm-f22fbe3a152ed1e7712c6580405cb28db00187a5.tar.gz llvm-f22fbe3a152ed1e7712c6580405cb28db00187a5.tar.bz2 |
Clean up usages of asserting vector getters in Type
Summary:
Remove usages of asserting vector getters in Type in preparation for the
VectorType refactor. The existence of these functions complicates the
refactor while adding little value.
Reviewers: sdesmalen, efriedma, krememek
Reviewed By: sdesmalen, efriedma
Subscribers: dexonsmith, Charusso, cfe-commits
Tags: #clang
Differential Revision: https://reviews.llvm.org/D77257
Diffstat (limited to 'clang/lib/CodeGen/TargetInfo.cpp')
-rw-r--r-- | clang/lib/CodeGen/TargetInfo.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/TargetInfo.cpp b/clang/lib/CodeGen/TargetInfo.cpp index 019c533..bd8b465 100644 --- a/clang/lib/CodeGen/TargetInfo.cpp +++ b/clang/lib/CodeGen/TargetInfo.cpp @@ -3054,7 +3054,7 @@ llvm::Type *X86_64ABIInfo::GetByteVectorType(QualType Ty) const { // Don't pass vXi128 vectors in their native type, the backend can't // legalize them. if (passInt128VectorsInMem() && - IRType->getVectorElementType()->isIntegerTy(128)) { + cast<llvm::VectorType>(IRType)->getElementType()->isIntegerTy(128)) { // Use a vXi64 vector. uint64_t Size = getContext().getTypeSize(Ty); return llvm::VectorType::get(llvm::Type::getInt64Ty(getVMContext()), |