From 56b226a8da7b6f2a7464c4199d458abee550d879 Mon Sep 17 00:00:00 2001 From: Aaron Ballman Date: Fri, 30 Nov 2012 21:15:20 +0000 Subject: Fixing an MSVC warning about an unsafe mixture of Boolean and unsigned types in a logical operator. llvm-svn: 169037 --- clang/lib/CodeGen/CGExpr.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'clang/lib/CodeGen') diff --git a/clang/lib/CodeGen/CGExpr.cpp b/clang/lib/CodeGen/CGExpr.cpp index e709e729b35..ac6925f784a 100644 --- a/clang/lib/CodeGen/CGExpr.cpp +++ b/clang/lib/CodeGen/CGExpr.cpp @@ -1950,7 +1950,7 @@ llvm::Constant *CodeGenFunction::EmitCheckTypeDescriptor(QualType T) { if (T->isIntegerType()) { TypeKind = 0; TypeInfo = (llvm::Log2_32(getContext().getTypeSize(T)) << 1) | - T->isSignedIntegerType(); + T->isSignedIntegerType() ? 1 : 0; } else if (T->isFloatingType()) { TypeKind = 1; TypeInfo = getContext().getTypeSize(T); -- cgit v1.2.3