[llvm-commits] [llvm] r87002 - /llvm/trunk/include/llvm/BasicBlock.h
Benjamin Kramer
benny.kra at googlemail.com
Thu Nov 12 09:59:45 PST 2009
Author: d0k
Date: Thu Nov 12 11:59:45 2009
New Revision: 87002
URL: http://llvm.org/viewvc/llvm-project?rev=87002&view=rev
Log:
Silence a warning on targets with unsigned chars.
Modified:
llvm/trunk/include/llvm/BasicBlock.h
Modified: llvm/trunk/include/llvm/BasicBlock.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/BasicBlock.h?rev=87002&r1=87001&r2=87002&view=diff
==============================================================================
--- llvm/trunk/include/llvm/BasicBlock.h (original)
+++ llvm/trunk/include/llvm/BasicBlock.h Thu Nov 12 11:59:45 2009
@@ -247,7 +247,7 @@
/// 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");
}
};
More information about the llvm-commits
mailing list