[LLVMdev] [clang] Is truncating/extending array index still necessary?
Jingyue Wu
jingyue at google.com
Thu Apr 17 12:33:47 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/llvm-dev/attachments/20140417/b67d650f/attachment.html>
More information about the llvm-dev
mailing list