Debug info: Initialize runtime language field correctly for Objective-C
interface types.
llvm-svn: 72036
diff --git a/clang/lib/CodeGen/CGDebugInfo.cpp b/clang/lib/CodeGen/CGDebugInfo.cpp
index c871b7b..382b186 100644
--- a/clang/lib/CodeGen/CGDebugInfo.cpp
+++ b/clang/lib/CodeGen/CGDebugInfo.cpp
@@ -519,7 +519,7 @@
unsigned Line = PLoc.isInvalid() ? 0 : PLoc.getLine();
- unsigned RuntimeLang = DefUnit.getRunTimeVersion();
+ unsigned RuntimeLang = DefUnit.getLanguage();
// To handle recursive interface, we
// first generate a debug descriptor for the struct as a forward declaration.