aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/llvm/DebugInfo.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/llvm/DebugInfo.h b/include/llvm/DebugInfo.h
index dc87c59cc6..c51cfee29c 100644
--- a/include/llvm/DebugInfo.h
+++ b/include/llvm/DebugInfo.h
@@ -188,12 +188,12 @@ namespace llvm {
public:
explicit DICompileUnit(const MDNode *N = 0) : DIScope(N) {}
- unsigned getLanguage() const { return getUnsignedField(1); }
+ unsigned getLanguage() const { return getUnsignedField(2); }
StringRef getFilename() const {
- return getFieldAs<DIFile>(2).getFilename();
+ return getFieldAs<DIFile>(1).getFilename();
}
StringRef getDirectory() const {
- return getFieldAs<DIFile>(2).getDirectory();
+ return getFieldAs<DIFile>(1).getDirectory();
}
StringRef getProducer() const { return getStringField(3); }