[llvm] r194957 - DebugLoc defines LineCol as 32 bit in comment but unsigned in code.
Yaron Keren
yaron.keren at gmail.com
Sun Nov 17 01:47:40 PST 2013
Author: yrnkrn
Date: Sun Nov 17 03:47:39 2013
New Revision: 194957
URL: http://llvm.org/viewvc/llvm-project?rev=194957&view=rev
Log:
DebugLoc defines LineCol as 32 bit in comment but unsigned in code.
This patch modifies LineCol to be a uint32_t.
See http://llvm.org/bugs/show_bug.cgi?id=17957
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=194957&r1=194956&r2=194957&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Support/DebugLoc.h (original)
+++ llvm/trunk/include/llvm/Support/DebugLoc.h Sun Nov 17 03:47:39 2013
@@ -15,6 +15,8 @@
#ifndef LLVM_SUPPORT_DEBUGLOC_H
#define LLVM_SUPPORT_DEBUGLOC_H
+#include "llvm/Support/DataTypes.h"
+
namespace llvm {
template <typename T> struct DenseMapInfo;
class MDNode;
@@ -45,7 +47,7 @@ namespace llvm {
/// LineCol - This 32-bit value encodes the line and column number for the
/// location, encoded as 24-bits for line and 8 bits for col. A value of 0
/// for either means unknown.
- unsigned LineCol;
+ uint32_t LineCol;
/// ScopeIdx - This is an opaque ID# for Scope/InlinedAt information,
/// decoded by LLVMContext. 0 is unknown.
More information about the llvm-commits
mailing list