diff options
author | Nikita Popov <nikita.ppv@gmail.com> | 2021-07-08 21:13:52 +0200 |
---|---|---|
committer | Nikita Popov <nikita.ppv@gmail.com> | 2021-07-08 21:21:43 +0200 |
commit | 9e225a2a71ce43cb74283d3bcf8c9d1eb7c30bd4 (patch) | |
tree | 60e93a82a6cf435599dcedcbd0de1a79758c1357 /clang/lib/Basic/Module.cpp | |
parent | cfb94212d49a1a28208b09bb7d80b86956854b4b (diff) | |
download | llvm-9e225a2a71ce43cb74283d3bcf8c9d1eb7c30bd4.zip llvm-9e225a2a71ce43cb74283d3bcf8c9d1eb7c30bd4.tar.gz llvm-9e225a2a71ce43cb74283d3bcf8c9d1eb7c30bd4.tar.bz2 |
[AMDGPU] Simplify GEP construction (NFC)
Noticed while making a related change. This code was doing
something really peculiar: Creating an APInt by parsing a string.
And then creating a SmallVector with one element to create the
GEP.
Instead create the APInt from integers and directly pass the single
index to GetElementPtrInst::Create().
Diffstat (limited to 'clang/lib/Basic/Module.cpp')
0 files changed, 0 insertions, 0 deletions