File tree Expand file tree Collapse file tree 3 files changed +12
-3
lines changed
cpp/ql/src/semmle/code/cpp/ir/implementation
csharp/ql/src/experimental/ir/implementation/unaliased_ssa/internal Expand file tree Collapse file tree 3 files changed +12
-3
lines changed Original file line number Diff line number Diff line change @@ -934,7 +934,10 @@ module SSAConsistency {
934
934
locationCount > 1 and
935
935
func = operand .getEnclosingIRFunction ( ) and
936
936
funcText = Language:: getIdentityString ( func .getFunction ( ) ) and
937
- message = "Operand has " + locationCount .toString ( ) + " memory accesses in function '$@'."
937
+ message =
938
+ operand .getUse ( ) .toString ( ) + " " + "Operand has " + locationCount .toString ( ) +
939
+ " memory accesses in function '$@': " +
940
+ strictconcat ( Alias:: getOperandMemoryLocation ( operand ) .toString ( ) , ", " )
938
941
)
939
942
}
940
943
Original file line number Diff line number Diff line change @@ -934,7 +934,10 @@ module SSAConsistency {
934
934
locationCount > 1 and
935
935
func = operand .getEnclosingIRFunction ( ) and
936
936
funcText = Language:: getIdentityString ( func .getFunction ( ) ) and
937
- message = "Operand has " + locationCount .toString ( ) + " memory accesses in function '$@'."
937
+ message =
938
+ operand .getUse ( ) .toString ( ) + " " + "Operand has " + locationCount .toString ( ) +
939
+ " memory accesses in function '$@': " +
940
+ strictconcat ( Alias:: getOperandMemoryLocation ( operand ) .toString ( ) , ", " )
938
941
)
939
942
}
940
943
Original file line number Diff line number Diff line change @@ -934,7 +934,10 @@ module SSAConsistency {
934
934
locationCount > 1 and
935
935
func = operand .getEnclosingIRFunction ( ) and
936
936
funcText = Language:: getIdentityString ( func .getFunction ( ) ) and
937
- message = "Operand has " + locationCount .toString ( ) + " memory accesses in function '$@'."
937
+ message =
938
+ operand .getUse ( ) .toString ( ) + " " + "Operand has " + locationCount .toString ( ) +
939
+ " memory accesses in function '$@': " +
940
+ strictconcat ( Alias:: getOperandMemoryLocation ( operand ) .toString ( ) , ", " )
938
941
)
939
942
}
940
943
You can’t perform that action at this time.
0 commit comments