File tree Expand file tree Collapse file tree
cpp/ql/src/semmle/code/cpp/ir/dataflow/internal Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -317,7 +317,7 @@ abstract class PostUpdateNode extends InstructionNode {
317317 * setY(&x); // a partial definition of the object `x`.
318318 * ```
319319 */
320- abstract private class PartialDefinitionNode extends PostUpdateNode , TInstructionNode {
320+ abstract private class PartialDefinitionNode extends PostUpdateNode {
321321 abstract Expr getDefinedExpr ( ) ;
322322}
323323
@@ -332,11 +332,7 @@ private class ExplicitFieldStoreQualifierNode extends PartialDefinitionNode {
332332 )
333333 }
334334
335- // There might be multiple `ChiInstructions` that has a particular instruction as
336- // the total operand - so this definition gives consistency errors in
337- // DataFlowImplConsistency::Consistency. However, it's not clear what (if any) implications
338- // this consistency failure has.
339- override Node getPreUpdateNode ( ) { result .asInstruction ( ) = instr .getTotal ( ) }
335+ override Node getPreUpdateNode ( ) { result .asOperand ( ) = instr .getTotalOperand ( ) }
340336
341337 override Expr getDefinedExpr ( ) {
342338 result = field .getObjectAddress ( ) .getUnconvertedResultExpression ( )
You can’t perform that action at this time.
0 commit comments