diff options
author | James Y Knight <jyknight@google.com> | 2019-01-10 16:07:20 +0000 |
---|---|---|
committer | James Y Knight <jyknight@google.com> | 2019-01-10 16:07:20 +0000 |
commit | b35ac2c8bb2132a52dffe7de391b443254887aa2 (patch) | |
tree | 6661be6feba46f2a82ce9b0d40d985bb40f9a2a9 /lldb | |
parent | f44912599f340bbfa3ac0a40552530b933d98a61 (diff) |
[opaque pointer types] Remove some calls to generic Type subtype accessors.
That is, remove many of the calls to Type::getNumContainedTypes(),
Type::subtypes(), and Type::getContainedType(N).
I'm not intending to remove these accessors -- they are
useful/necessary in some cases. However, removing the pointee type
from pointers would potentially break some uses, and reducing the
number of calls makes it easier to audit.
Diffstat (limited to 'lldb')
-rw-r--r-- | lldb/source/Expression/IRInterpreter.cpp | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/lldb/source/Expression/IRInterpreter.cpp b/lldb/source/Expression/IRInterpreter.cpp index 2c08d098b4d..457eaef46dd 100644 --- a/lldb/source/Expression/IRInterpreter.cpp +++ b/lldb/source/Expression/IRInterpreter.cpp @@ -1592,9 +1592,6 @@ bool IRInterpreter::Interpret(llvm::Module &module, llvm::Function &function, // Check if this is a string literal or constant string pointer if (arg_ty->isPointerTy()) { - // Pointer to just one type - assert(arg_ty->getNumContainedTypes() == 1); - lldb::addr_t addr = tmp_op.ULongLong(); size_t dataSize = 0; |