Skip to content

Commit

Permalink
CXX frontend: remove assert and use a problem node instead (#1846)
Browse files Browse the repository at this point in the history
* remove assert and use a problem node instead

* Removed basetype assert

---------

Co-authored-by: Christian Banse <[email protected]>
  • Loading branch information
maximiliankaul and oxisto authored Nov 15, 2024
1 parent ab6d99f commit 3fe8edb
Showing 1 changed file with 0 additions and 3 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,8 +427,6 @@ class ExpressionHandler(lang: CXXLanguageFrontend) :
val callExpression: CallExpression
when {
reference is MemberExpression -> {
val baseType = reference.base.type.root
assert(baseType !is SecondOrderType)
callExpression = newMemberCallExpression(reference, rawNode = ctx)
if (
(ctx.functionNameExpression as? IASTFieldReference)?.fieldName
Expand Down

0 comments on commit 3fe8edb

Please sign in to comment.