From: Nick Lewycky Date: Wed, 13 Apr 2011 18:46:22 +0000 (+0000) Subject: Use positive values since the value type is unsigned. Fixes a warning on the X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=b90e1d5aaf5b43309a0643b3248dd95001b3d196;p=oota-llvm.git Use positive values since the value type is unsigned. Fixes a warning on the llvm-gcc-native-mingw32 builder. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@129457 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/Support/DebugLoc.h b/include/llvm/Support/DebugLoc.h index 8d19e300ec2..98a05a45a76 100644 --- a/include/llvm/Support/DebugLoc.h +++ b/include/llvm/Support/DebugLoc.h @@ -31,7 +31,7 @@ namespace llvm { /// not equal to the tombstone key or DebugLoc(). static DebugLoc getEmptyKey() { DebugLoc DL; - DL.LineCol = -1; + DL.LineCol = 1; return DL; } @@ -39,7 +39,7 @@ namespace llvm { /// is not equal to the empty key or DebugLoc(). static DebugLoc getTombstoneKey() { DebugLoc DL; - DL.LineCol = -2; + DL.LineCol = 2; return DL; }