DebugInfo: enumerator values returned as int64 as they are stored
authorDavid Blaikie <dblaikie@gmail.com>
Mon, 24 Jun 2013 07:11:08 +0000 (07:11 +0000)
committerDavid Blaikie <dblaikie@gmail.com>
Mon, 24 Jun 2013 07:11:08 +0000 (07:11 +0000)
llvm-svn: 184694

llvm/include/llvm/DebugInfo.h

index 01ff634..947f4a6 100644 (file)
@@ -222,7 +222,7 @@ namespace llvm {
     explicit DIEnumerator(const MDNode *N = 0) : DIDescriptor(N) {}
 
     StringRef getName() const        { return getStringField(1); }
-    uint64_t getEnumValue() const      { return getUInt64Field(2); }
+    int64_t getEnumValue() const      { return getInt64Field(2); }
     bool Verify() const;
   };