mirror of
https://github.com/github/codeql.git
synced 2025-12-17 01:03:14 +01:00
Autoformat
This commit is contained in:
@@ -194,7 +194,7 @@ predicate needsLoad(Expr expr) {
|
||||
* Holds if we should ignore the `Load` instruction for `expr` when generating IR.
|
||||
*/
|
||||
private predicate ignoreLoad(Expr expr) {
|
||||
// No load needed for the qualifier of an array access,
|
||||
// No load needed for the qualifier of an array access,
|
||||
// since we use the instruction `ElementsAddress`
|
||||
// to get the address of the first element in an array
|
||||
expr = any(ArrayAccess aa).getQualifier()
|
||||
|
||||
@@ -1447,7 +1447,7 @@ class TranslatedAssignOperation extends TranslatedAssignment {
|
||||
else result instanceof Opcode::Add
|
||||
)
|
||||
or
|
||||
expr instanceof AssignSubExpr and
|
||||
expr instanceof AssignSubExpr and
|
||||
(
|
||||
if expr.getRValue().getType() instanceof PointerType
|
||||
then result instanceof Opcode::PointerSub
|
||||
@@ -1505,7 +1505,7 @@ class TranslatedAssignOperation extends TranslatedAssignment {
|
||||
exists(Opcode opcode |
|
||||
opcode = this.getOpcode() and
|
||||
(
|
||||
opcode instanceof Opcode::PointerAdd or
|
||||
opcode instanceof Opcode::PointerAdd or
|
||||
opcode instanceof Opcode::PointerSub
|
||||
)
|
||||
) and
|
||||
|
||||
Reference in New Issue
Block a user