[cfe-dev] Fwd: [clang] Is truncating/extending array index still necessary?

Jingyue Wu jingyue at google.com
Thu Apr 17 13:15:44 PDT 2014


When emitting array subscripts, clang extends or truncate the index type to
the size of a pointer (lib/CodeGen/CGExpr.cpp:2260). This code was added in
a very initial commit. Is it still necessary given gep supports any-width
integers as an array index (http://llvm.org/docs/LangRef.html#id180)?

Jingyue
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20140417/11c56425/attachment.html>


More information about the cfe-dev mailing list