From 7f82fdb9bcd4f24c8128019b56919d1b727a10dc Mon Sep 17 00:00:00 2001 From: Benjamin Kramer Date: Thu, 12 Nov 2009 17:59:45 +0000 Subject: [PATCH] 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 --- include/llvm/BasicBlock.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"); } };