Fix a problem that Eli noticed, and that Doug helped me fix.
llvm-svn: 75265
diff --git a/clang/lib/CodeGen/CGDebugInfo.cpp b/clang/lib/CodeGen/CGDebugInfo.cpp
index cf8e19a..8fa1e9c 100644
--- a/clang/lib/CodeGen/CGDebugInfo.cpp
+++ b/clang/lib/CodeGen/CGDebugInfo.cpp
@@ -792,8 +792,8 @@
return Slot = getOrCreateType(cast<TypeOfType>(Ty)->getUnderlyingType(),
Unit);
case Type::Decltype:
- return Slot = getOrCreateType(cast<DecltypeType>(Ty)->getUnderlyingExpr()
- ->getType(), Unit);
+ return Slot = getOrCreateType(cast<DecltypeType>(Ty)->getUnderlyingType(),
+ Unit);
}
return Slot;