aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/StatementGen.cc
diff options
context:
space:
mode:
Diffstat (limited to 'lib/CodeGen/StatementGen.cc')
-rw-r--r--lib/CodeGen/StatementGen.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/StatementGen.cc b/lib/CodeGen/StatementGen.cc
index 6bc4ec4..2186aa0 100644
--- a/lib/CodeGen/StatementGen.cc
+++ b/lib/CodeGen/StatementGen.cc
@@ -105,7 +105,7 @@ void CodeGen::emitStmtImpl(StmtAST *Stmt) {
if (auto *Call = dynamic_cast<CallStmtAST*>(Stmt)) {
Value *Result = emitCall(Call->getCallee(), Call->getArgs(), Call->getLine());
- const FuncSig *Sig = FuncGen->hasFunction(Call->getCallee())
+ const FuncSig *Sig = hasCallable(Call->getCallee())
? resolveCall(Call->getCallee(), Call->getArgs()) : nullptr;
const TypeInfo *Type = Sig ? resolveType(Sig->ReturnTypeName) : nullptr;
if (Result && Type && (Type->IsClass || containsString(Type))) materializeOperatorReceiver(Result, Type);