diff options
author | John McCall <rjmccall@apple.com> | 2010-04-06 23:35:53 +0000 |
---|---|---|
committer | John McCall <rjmccall@apple.com> | 2010-04-06 23:35:53 +0000 |
commit | 795ee9dd1e43d9e3ba87c052f721b6f7a2161827 (patch) | |
tree | 8b91d05fad9493c5f1d18d5291a358e77694bccd /lib/CodeGen/AsmPrinter/DwarfDebug.cpp | |
parent | 49d915bb9a60b1dc9d1b5313dc8849427a034dfa (diff) |
Fix a number of clang -Wsign-compare warnings that didn't have an obvious
solution. The only reason these don't fire with gcc-4.2 is that gcc turns off
part of -Wsign-compare in C++ on accident.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100581 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/AsmPrinter/DwarfDebug.cpp')
-rw-r--r-- | lib/CodeGen/AsmPrinter/DwarfDebug.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/AsmPrinter/DwarfDebug.cpp b/lib/CodeGen/AsmPrinter/DwarfDebug.cpp index b472d1e533..6ee4144f8a 100644 --- a/lib/CodeGen/AsmPrinter/DwarfDebug.cpp +++ b/lib/CodeGen/AsmPrinter/DwarfDebug.cpp @@ -1542,7 +1542,7 @@ DIE *DwarfDebug::constructVariableDIE(DbgVariable *DV, DbgScope *Scope) { const APInt FltVal = FPImm.bitcastToAPInt(); const char *FltPtr = (const char*)FltVal.getRawData(); - unsigned NumBytes = FltVal.getBitWidth() / 8; // 8 bits per byte. + int NumBytes = FltVal.getBitWidth() / 8; // 8 bits per byte. bool LittleEndian = Asm->getTargetData().isLittleEndian(); int Incr = (LittleEndian ? 1 : -1); int Start = (LittleEndian ? 0 : NumBytes - 1); |