diff --git a/include/llvm/BasicBlock.h b/include/llvm/BasicBlock.h index ba4caeb96a5..80d87027239 100644 --- a/include/llvm/BasicBlock.h +++ b/include/llvm/BasicBlock.h @@ -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"); } };