From b90e1d5aaf5b43309a0643b3248dd95001b3d196 Mon Sep 17 00:00:00 2001 From: Nick Lewycky Date: Wed, 13 Apr 2011 18:46:22 +0000 Subject: [PATCH] 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 --- include/llvm/Support/DebugLoc.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; }