Skip to content
This repository was archived by the owner on Apr 23, 2020. It is now read-only.

Commit 7646bd5

Browse files
committed
Add a missing TypeAndOrName constructor
Add a TypeAndOrName constructor that was declared but not defined. This is used in the Rust plugin. See https://reviews.llvm.org/D44752
1 parent 10c8f74 commit 7646bd5

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

source/Symbol/Type.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -699,6 +699,13 @@ TypeAndOrName::TypeAndOrName(const TypeAndOrName &rhs)
699699
TypeAndOrName::TypeAndOrName(ConstString &in_type_const_string)
700700
: m_type_name(in_type_const_string) {}
701701

702+
TypeAndOrName::TypeAndOrName(const CompilerType &type)
703+
: m_type_pair(type)
704+
{
705+
if (m_type_pair)
706+
m_type_name = m_type_pair.GetName();
707+
}
708+
702709
TypeAndOrName &TypeAndOrName::operator=(const TypeAndOrName &rhs) {
703710
if (this != &rhs) {
704711
m_type_name = rhs.m_type_name;

0 commit comments

Comments
 (0)