From: Vedant Kumar Date: Fri, 9 Oct 2015 01:47:26 +0000 (+0000) Subject: [Sema] Add "Ty" suffix to QualType variables for clarity (NFC) X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ec9af7f507782e8bf3304b5706c10a08434288ab;p=clang [Sema] Add "Ty" suffix to QualType variables for clarity (NFC) git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@249801 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Sema/SemaExpr.cpp b/lib/Sema/SemaExpr.cpp index 7bf1938b86..801709c17d 100644 --- a/lib/Sema/SemaExpr.cpp +++ b/lib/Sema/SemaExpr.cpp @@ -5516,15 +5516,15 @@ bool Sema::areLaxCompatibleVectorTypes(QualType srcTy, QualType destTy) { if (destTy->isScalarType() && srcTy->isExtVectorType()) return false; uint64_t srcLen, destLen; - QualType srcElt, destElt; - if (!breakDownVectorType(srcTy, srcLen, srcElt)) return false; - if (!breakDownVectorType(destTy, destLen, destElt)) return false; + QualType srcEltTy, destEltTy; + if (!breakDownVectorType(srcTy, srcLen, srcEltTy)) return false; + if (!breakDownVectorType(destTy, destLen, destEltTy)) return false; // ASTContext::getTypeSize will return the size rounded up to a // power of 2, so instead of using that, we need to use the raw // element size multiplied by the element count. - uint64_t srcEltSize = Context.getTypeSize(srcElt); - uint64_t destEltSize = Context.getTypeSize(destElt); + uint64_t srcEltSize = Context.getTypeSize(srcEltTy); + uint64_t destEltSize = Context.getTypeSize(destEltTy); return (srcLen * srcEltSize == destLen * destEltSize); }