diff --git a/llvm/include/llvm/DebugInfo.h b/llvm/include/llvm/DebugInfo.h index 3e4a960ea7ba..0a070fe5305a 100644 --- a/llvm/include/llvm/DebugInfo.h +++ b/llvm/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();