[llvm-commits] [llvm] r129457 - /llvm/trunk/include/llvm/Support/DebugLoc.h

Nick Lewycky nicholas at mxc.ca
Wed Apr 13 11:46:22 PDT 2011


Author: nicholas
Date: Wed Apr 13 13:46:22 2011
New Revision: 129457

URL: http://llvm.org/viewvc/llvm-project?rev=129457&view=rev
Log:
Use positive values since the value type is unsigned. Fixes a warning on the
llvm-gcc-native-mingw32 builder.

Modified:
    llvm/trunk/include/llvm/Support/DebugLoc.h

Modified: llvm/trunk/include/llvm/Support/DebugLoc.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Support/DebugLoc.h?rev=129457&r1=129456&r2=129457&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Support/DebugLoc.h (original)
+++ llvm/trunk/include/llvm/Support/DebugLoc.h Wed Apr 13 13:46:22 2011
@@ -31,7 +31,7 @@
     /// 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 @@
     /// is not equal to the empty key or DebugLoc().
     static DebugLoc getTombstoneKey() {
       DebugLoc DL;
-      DL.LineCol = -2;
+      DL.LineCol = 2;
       return DL;
     }
 





More information about the llvm-commits mailing list