diff options
author | Deric C. <cheung.deric@gmail.com> | 2025-07-17 14:51:53 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-07-17 14:51:53 -0700 |
commit | fae8df2b82692ec8f69ba578847713f0da6e1ddc (patch) | |
tree | 75edffadcc11294506cb084701326f2a659c6e12 /clang/lib/CodeGen/CodeGenFunction.cpp | |
parent | 689e95817e1671b0ed6c7f2031fbcf2f81632978 (diff) | |
download | llvm-fae8df2b82692ec8f69ba578847713f0da6e1ddc.zip llvm-fae8df2b82692ec8f69ba578847713f0da6e1ddc.tar.gz llvm-fae8df2b82692ec8f69ba578847713f0da6e1ddc.tar.bz2 |
[DirectX] Fix GEP flattening with 0-indexed GEPs on global variables (#149211)
Fixes #149179
The issue is that `Builder.CreateGEP` does not return a GEP Instruction
or GEP ContantExpr when the pointer operand is a global variable and all
indices are constant zeroes.
This PR ensures that a GEP instruction is created if `Builder.CreateGEP`
did not return a GEP.
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.cpp')
0 files changed, 0 insertions, 0 deletions