aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Commands/CommandObjectCommands.cpp
diff options
context:
space:
mode:
authorNikita Popov <nikita.ppv@gmail.com>2021-07-08 20:56:05 +0200
committerNikita Popov <nikita.ppv@gmail.com>2021-07-09 17:37:43 +0200
commit5035e7be1a8ab923e1a82def7e313cc11c0b176f (patch)
tree7e1b3dec460a6228bfa90a58885bba6aa81713d6 /lldb/source/Commands/CommandObjectCommands.cpp
parent52900486a1b5d270687b7268dc8dd90061889066 (diff)
downloadllvm-5035e7be1a8ab923e1a82def7e313cc11c0b176f.zip
llvm-5035e7be1a8ab923e1a82def7e313cc11c0b176f.tar.gz
llvm-5035e7be1a8ab923e1a82def7e313cc11c0b176f.tar.bz2
[IR] Don't accept nullptr as GEP element type
GetElementPtrInst::Create() (and IRBuilder methods based on it) currently accept nullptr as the element type, and will fetch the element type from the pointer in that case. Remove this fallback, as it is incompatible with opaque pointers. I've removed a handful of leftover calls using this behavior as a preliminary step. Out-of-tree code affected by this change should either pass a proper type, or can temporarily explicitly call getPointerElementType(), if the newly added assertion is encountered. Differential Revision: https://reviews.llvm.org/D105653
Diffstat (limited to 'lldb/source/Commands/CommandObjectCommands.cpp')
0 files changed, 0 insertions, 0 deletions