]> granicus.if.org Git - clang/commitdiff
Fixing an MSVC warning about an unsafe mixture of Boolean and unsigned types in a...
authorAaron Ballman <aaron@aaronballman.com>
Fri, 30 Nov 2012 21:15:20 +0000 (21:15 +0000)
committerAaron Ballman <aaron@aaronballman.com>
Fri, 30 Nov 2012 21:15:20 +0000 (21:15 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@169037 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/CGExpr.cpp

index e709e729b3536dba2d2bc6894be9bc1093f97256..ac6925f784a8beaa1315b76fd33f21500aba4c56 100644 (file)
@@ -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);