Silence a warning on targets with unsigned chars.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@87002 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Benjamin Kramer 2009-11-12 17:59:45 +00:00
parent 80697d1b26
commit 7f82fdb9bc

View 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");
}
};