[PATCH] D61809: [BPF] Preserve debuginfo array/union/struct type name/access index
Eli Friedman via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu May 16 12:36:02 PDT 2019
efriedma added inline comments.
================
Comment at: lib/CodeGen/CGExpr.cpp:3359
+ // Remember the original array subscript for bpf target
+ unsigned idx = cast<llvm::ConstantInt>(indices.back())->getZExtValue();
+ eltPtr = CGF.Builder.CreatePreserveArrayAccessIndex(addr.getPointer(),
----------------
I don't think there's any reason to expect the array subscript is a ConstantInt here?
Repository:
rC Clang
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D61809/new/
https://reviews.llvm.org/D61809
More information about the cfe-commits
mailing list