From ad60ff70eb56a7d198e613152f9974d5d4baabd4 Mon Sep 17 00:00:00 2001 From: Shengchen Kan Date: Wed, 13 May 2020 14:44:54 +0800 Subject: [PATCH] [NFC] Code cleanup in TargetInfo.cpp Fix the signed/unsigned mismatch issue --- clang/lib/CodeGen/TargetInfo.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/clang/lib/CodeGen/TargetInfo.cpp b/clang/lib/CodeGen/TargetInfo.cpp index bc5c168..44608ea 100644 --- a/clang/lib/CodeGen/TargetInfo.cpp +++ b/clang/lib/CodeGen/TargetInfo.cpp @@ -6675,9 +6675,9 @@ bool NVPTXABIInfo::isUnsupportedType(QualType T) const { return true; if (const auto *EIT = T->getAs()) return EIT->getNumBits() > - (Context.getTargetInfo().hasInt128Type() ? 128 : 64); + (Context.getTargetInfo().hasInt128Type() ? 128U : 64U); if (!Context.getTargetInfo().hasInt128Type() && T->isIntegerType() && - Context.getTypeSize(T) > 64) + Context.getTypeSize(T) > 64U) return true; if (const auto *AT = T->getAsArrayTypeUnsafe()) return isUnsupportedType(AT->getElementType()); -- 2.7.4