github / github/codeql

AsmStmt has no accessor for assembly, or clobberlist

Open
#6,157 4 comments 0 reactions 0 assignees View on GitHub
C++
Dominant language
CodeQL
Stars
10.1k
Forks
2.1k
Avg merge
2d 15h
Merged PRs (30d)
141

Description

Given an AsmStmt as follows:
```c
asm volatile
(
"syscall"
: "=a" (ret)
: "0"(nr), "D"(arg0), "S"(arg1), "d"(arg2)
: "rcx", "r11", "memory"
);
```
There seems to be no predicate to retrieve the assembly string (in this case, `"syscall"`), the return or the clobberlist. Calling `getAChild` inherited from `Expr` only yields the input/output expressions.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.