github / github/codeql

AsmStmt has no accessor for assembly, or clobberlist

Offen
#6,157 4 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
C++
Vorherrschende Sprache
CodeQL
Sterne
10.1k
Forks
2.1k
Ø Merge
2 T. 15 Std.
Gemergte PRs (30 T.)
141

Beschreibung

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.

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.