mirror of
https://github.com/github/codeql.git
synced 2026-07-31 23:42:59 +02:00
Fix InitLiteralComponentInstruction.getRhs() for key-value pairs
Key-value pairs are now expressions, but only the value is really written.
This commit is contained in:
@@ -551,7 +551,8 @@ module IR {
|
||||
Instruction getBase() { result = evalExprInstruction(lit) }
|
||||
|
||||
override Instruction getRhs() {
|
||||
result = evalExprInstruction(elt) or
|
||||
not elt instanceof KeyValueExpr and result = evalExprInstruction(elt)
|
||||
or
|
||||
result = evalExprInstruction(elt.(KeyValueExpr).getValue())
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user