We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b568942 commit d2b38f2Copy full SHA for d2b38f2
src/engine/internal/llvm/instructions/procedures.cpp
@@ -59,10 +59,10 @@ LLVMInstruction *Procedures::buildCallProcedure(LLVMInstruction *ins)
59
60
// Add procedure args
61
for (const auto &arg : ins->args) {
62
- if (arg.first == Compiler::StaticType::Unknown)
63
- args.push_back(m_utils.createValue(arg.second));
64
- else
+ if (m_utils.isSingleType(arg.first))
65
args.push_back(m_utils.castValue(arg.second, arg.first));
+ else
+ args.push_back(m_utils.createValue(arg.second));
66
}
67
68
llvm::Value *handle = m_builder.CreateCall(m_utils.functions().resolveFunction(name, type), args);
0 commit comments