Silence a warning on targets with unsigned chars.
authorBenjamin Kramer <benny.kra@googlemail.com>
Thu, 12 Nov 2009 17:59:45 +0000 (17:59 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Thu, 12 Nov 2009 17:59:45 +0000 (17:59 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@87002 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/BasicBlock.h

index ba4caeb96a529e1deda09e58ed0784e5d340a577..80d870272396cd2fe217db941fd8008fca54a64f 100644 (file)
@@ -247,7 +247,7 @@ private:
   /// almost never 2, and inconceivably 3 or more.
   void AdjustBlockAddressRefCount(int Amt) {
     SubclassData += Amt;
-    assert((int)(char)SubclassData >= 0 && "Refcount wrap-around");
+    assert((int)(signed char)SubclassData >= 0 && "Refcount wrap-around");
   }
 };