Skip to content

Commit 4224eab

Browse files
codegen: use qualified name in method calls
similar to upstream
1 parent 34f2dde commit 4224eab

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/Interpreter/CppInterOp.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2007,6 +2007,8 @@ namespace Cpp {
20072007
callbuf << "((const " << class_name << "*)obj)->";
20082008
else
20092009
callbuf << "((" << class_name << "*)obj)->";
2010+
2011+
if (op_flag) callbuf << class_name << "::";
20102012
} else if (isa<NamedDecl>(get_non_transparent_decl_context(FD))) {
20112013
// This is a namespace member.
20122014
if (op_flag || N <= 1)

0 commit comments

Comments
 (0)