Skip to content

Commit b2a6445

Browse files
Merge pull request #2701 from ShengchenJ/up_num
[SYCLomatic] Replace the FuncDecl number parameters to call expr argument length.
2 parents 97c3e37 + 01a27fb commit b2a6445

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

clang/lib/DPCT/AnalysisInfo.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4616,7 +4616,7 @@ void CallFunctionExpr::buildCalleeInfo(const Expr *Callee,
46164616
!DpctGlobalInfo::isInAnalysisScope(CallDecl->getBeginLoc()) ||
46174617
DRE->getQualifier() || CallDecl->isOverloadedOperator())
46184618
return;
4619-
for (unsigned i = 0; i < NumArgs; i++) {
4619+
for (unsigned i = 0; i < CallDecl->getNumParams(); i++) {
46204620
auto Type = CallDecl->getParamDecl(i)
46214621
->getOriginalType()
46224622
.getCanonicalType()

0 commit comments

Comments
 (0)