Skip to content

Commit

Permalink
Removed basetype assert
Browse files Browse the repository at this point in the history
  • Loading branch information
oxisto committed Nov 15, 2024
1 parent 371708c commit 2422c3b
Showing 1 changed file with 0 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ import de.fraunhofer.aisec.cpg.graph.declarations.FunctionDeclaration
import de.fraunhofer.aisec.cpg.graph.declarations.MethodDeclaration
import de.fraunhofer.aisec.cpg.graph.statements.expressions.*
import de.fraunhofer.aisec.cpg.graph.types.FunctionType
import de.fraunhofer.aisec.cpg.graph.types.SecondOrderType
import de.fraunhofer.aisec.cpg.graph.types.Type
import de.fraunhofer.aisec.cpg.helpers.Util
import de.fraunhofer.aisec.cpg.passes.SymbolResolver.Companion.addImplicitTemplateParametersToCall
Expand Down Expand Up @@ -428,13 +427,6 @@ class ExpressionHandler(lang: CXXLanguageFrontend) :
val callExpression: CallExpression
when {
reference is MemberExpression -> {
val baseType = reference.base.type.root
if (baseType is SecondOrderType) {
return newProblemExpression(
problem = "Expected something other than a `SecondOrderType` as base.",
rawNode = ctx
)
}
callExpression = newMemberCallExpression(reference, rawNode = ctx)
if (
(ctx.functionNameExpression as? IASTFieldReference)?.fieldName
Expand Down

0 comments on commit 2422c3b

Please sign in to comment.