Skip to content

Commit 7511336

Browse files
committed
Add InlineAsm::expr
1 parent bc6da11 commit 7511336

6 files changed

Lines changed: 21 additions & 6 deletions

File tree

rust/.generated.list

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

rust/extractor/src/generated/top.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -581,6 +581,7 @@ impl TrapEntry for Index {
581581
pub struct InlineAsm {
582582
pub id: TrapId,
583583
pub location: Option<trap::Label>,
584+
pub expr: trap::Label,
584585
}
585586

586587
impl TrapEntry for InlineAsm {
@@ -589,7 +590,7 @@ impl TrapEntry for InlineAsm {
589590
}
590591

591592
fn emit(self, id: trap::Label, out: &mut trap::Writer) {
592-
out.add_tuple("inline_asms", vec![trap::Arg::Label(id)]);
593+
out.add_tuple("inline_asms", vec![trap::Arg::Label(id), self.expr.into()]);
593594
if let Some(v) = self.location {
594595
out.add_tuple("locatable_locations", vec![trap::Arg::Label(id), v.into()]);
595596
}

rust/ql/lib/codeql/rust/generated/InlineAsm.qll

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

rust/ql/lib/codeql/rust/generated/Raw.qll

Lines changed: 5 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

rust/ql/lib/rust.dbscheme

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -377,7 +377,8 @@ index_is_assignee_expr(
377377
);
378378

379379
inline_asms(
380-
unique int id: @inline_asm
380+
unique int id: @inline_asm,
381+
int expr: @expr ref
381382
);
382383

383384
item_stmts(

rust/schema.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -442,7 +442,7 @@ class OffsetOf(Expr):
442442

443443

444444
class InlineAsm(Expr):
445-
pass
445+
expr: Expr
446446

447447

448448
# Let {

0 commit comments

Comments
 (0)