CodeQL library for C/C++
codeql/cpp-all 1.1.0 (changelog, source)

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()