CodeQL library for C/C++
codeql/cpp-all 2.1.1-dev (changelog, source)
Search

Member predicate Instruction::getResultSize

Gets the size of the result produced by this instruction, in bytes. If the result does not have a known constant size, this predicate does not hold.

If this.isGLValue() holds for this instruction, the value of getResultSize() will always be the size of a pointer.

int getResultSize()