[clang-repl][NFC] Fix calling convention mismatch in test

Test failed on x86 platforms due to a calling convention mismatch
when member function was called like a free function. In this patch,
member function is marked static to address this.
This commit is contained in:
Elizabeth Andrews 2021-11-30 13:15:51 -08:00
parent d1326a3b10
commit 3ad0c6b75e

View File

@ -221,7 +221,7 @@ TEST(IncrementalProcessing, InstantiateTemplate) {
"class A {};"
"struct B {"
" template<typename T>"
" int callme(T) { return 42; }"
" static int callme(T) { return 42; }"
"};"));
auto &PTU = llvm::cantFail(Interp->Parse("auto _t = &B::callme<A*>;"));
auto PTUDeclRange = PTU.TUPart->decls();