summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorYaron Keren <yaron.keren@gmail.com>2013-11-17 09:47:39 +0000
committerYaron Keren <yaron.keren@gmail.com>2013-11-17 09:47:39 +0000
commite5a694ab578416d8d280836937c7d2714b1a83e6 (patch)
tree54ba0d0c1e2da46ef825eb5c217376c0129ab720 /include
parente7a1e3ee8279f12d0f2b49fb198d577949795c88 (diff)
downloadexternal_llvm-e5a694ab578416d8d280836937c7d2714b1a83e6.zip
external_llvm-e5a694ab578416d8d280836937c7d2714b1a83e6.tar.gz
external_llvm-e5a694ab578416d8d280836937c7d2714b1a83e6.tar.bz2
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 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@194957 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/Support/DebugLoc.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/llvm/Support/DebugLoc.h b/include/llvm/Support/DebugLoc.h
index f35d407..05f31d7 100644
--- a/include/llvm/Support/DebugLoc.h
+++ b/include/llvm/Support/DebugLoc.h
@@ -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.