Skip to content

Commit a281324

Browse files
[c2cpg] No resolveBinding() on IASTName (#5156)
1 parent c7fce4a commit a281324

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

joern-cli/frontends/c2cpg/src/main/scala/io/joern/c2cpg/astcreation/AstForExpressionsCreator.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ trait AstForExpressionsCreator(implicit withSchemaValidation: ValidationMode) {
8383
createPointerCallAst(call, cleanType(safeGetType(call.getExpressionType)))
8484
case functionType: ICPPFunctionType =>
8585
functionNameExpr match {
86-
case idExpr: CPPASTIdExpression if idExpr.getName.resolveBinding().isInstanceOf[ICPPFunction] =>
86+
case idExpr: CPPASTIdExpression if idExpr.getName.getBinding.isInstanceOf[ICPPFunction] =>
8787
val function = idExpr.getName.getBinding.asInstanceOf[ICPPFunction]
8888
val name = idExpr.getName.getLastName.toString
8989
val signature =

joern-cli/frontends/c2cpg/src/main/scala/io/joern/c2cpg/astcreation/AstForPrimitivesCreator.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ trait AstForPrimitivesCreator(implicit withSchemaValidation: ValidationMode) { t
132132
val variableOption = scope.lookupVariable(identifierName)
133133
variableOption match {
134134
case Some((_, variableTypeName)) => variableTypeName
135-
case None if ident.isInstanceOf[IASTName] && ident.asInstanceOf[IASTName].resolveBinding() != null =>
135+
case None if ident.isInstanceOf[IASTName] && ident.asInstanceOf[IASTName].getBinding != null =>
136136
val id = ident.asInstanceOf[IASTName]
137137
id.getBinding match {
138138
case v: IVariable =>

0 commit comments

Comments
 (0)