Use positive values since the value type is unsigned. Fixes a warning on the
authorNick Lewycky <nicholas@mxc.ca>
Wed, 13 Apr 2011 18:46:22 +0000 (18:46 +0000)
committerNick Lewycky <nicholas@mxc.ca>
Wed, 13 Apr 2011 18:46:22 +0000 (18:46 +0000)
llvm-gcc-native-mingw32 builder.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@129457 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Support/DebugLoc.h

index 8d19e300ec2557fd0b4c58520567d8e4e9754657..98a05a45a76d6fe3bbc0018f81c03059395183dc 100644 (file)
@@ -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;
     }