Skip to content

Commit 482b6a7

Browse files
committed
Return an error message in TypeSystem::DoIntegralPromotion
1 parent bfe21d6 commit 482b6a7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lldb/source/Symbol/TypeSystem.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,8 @@ bool TypeSystem::IsPromotableIntegerType(lldb::opaque_compiler_type_t type) {
130130
llvm::Expected<CompilerType>
131131
TypeSystem::DoIntegralPromotion(CompilerType from,
132132
ExecutionContextScope *exe_scope) {
133-
return CompilerType();
133+
return llvm::createStringError(
134+
"Integral promotion is not implemented for this TypeSystem");
134135
}
135136

136137
bool TypeSystem::IsTemplateType(lldb::opaque_compiler_type_t type) {

0 commit comments

Comments
 (0)