diff --git a/include/llvm/DebugInfo.h b/include/llvm/DebugInfo.h index 3e4a960ea7b..0a070fe5305 100644 --- a/include/llvm/DebugInfo.h +++ b/include/llvm/DebugInfo.h @@ -251,8 +251,7 @@ T DIRef::resolve(const DITypeIdentifierMap &Map) const { return T(Iter->second); } -template -StringRef DIRef::getName() const { +template StringRef DIRef::getName() const { if (!Val) return StringRef();