After commit 
35add35 ("gdb: Fix failure in gdb.base/complex-parts.exp
for x86-32"), dwarf2_init_complex_target_type can crash if "tt" is
nullptr.  This patch avoids the problem by checking for this case.
No test case because I don't know a good way to write one; it was
found by an internal AdaCore test case that apparently uses a 16 bit
floating point type.
gdb/ChangeLog:
	* dwarf2read.c (dwarf2_init_complex_target_type): Check "tt"
	against nullptr before use.
gdb/ChangeLog
2019-04-17  Tom Tromey  <tromey@adacore.com>
	* dwarf2read.c (dwarf2_init_complex_target_type): Check "tt"
	against nullptr before use.
 
+2019-04-17  Tom Tromey  <tromey@adacore.com>
+
+       * dwarf2read.c (dwarf2_init_complex_target_type): Check "tt"
+       against nullptr before use.
+
 2019-04-17  Alan Hayward  <alan.hayward@arm.com>
 
        * nat/linux-waitpid.c (linux_debug): Call debug_vprintf.
 
   /* If the type we found doesn't match the size we were looking for, then
      pretend we didn't find a type at all, the complex target type we
      create will then be nameless.  */
-  if (TYPE_LENGTH (tt) * TARGET_CHAR_BIT != bits)
+  if (tt != nullptr && TYPE_LENGTH (tt) * TARGET_CHAR_BIT != bits)
     tt = nullptr;
 
   const char *name = (tt == nullptr) ? nullptr : TYPE_NAME (tt);