[all-commits] [llvm/llvm-project] 95102b: [lldb] Unwrap the type when dereferencing the value

Andy Hippo via All-commits all-commits at lists.llvm.org
Mon Nov 15 05:48:40 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 95102b7dc3c1b5b3f1b688221d9aa28cb1e17974
      https://github.com/llvm/llvm-project/commit/95102b7dc3c1b5b3f1b688221d9aa28cb1e17974
  Author: Andy Yankovsky <weratt at gmail.com>
  Date:   2021-11-15 (Mon, 15 Nov 2021)

  Changed paths:
    M lldb/source/Plugins/TypeSystem/Clang/TypeSystemClang.cpp
    M lldb/test/API/lang/cpp/dereferencing_references/TestCPPDereferencingReferences.py
    M lldb/test/API/lang/cpp/dereferencing_references/main.cpp

  Log Message:
  -----------
  [lldb] Unwrap the type when dereferencing the value

The value type can be a typedef of a reference (e.g. `typedef int& myint`).
In this case `GetQualType(type)` will return `clang::Typedef`, which cannot
be casted to `clang::ReferenceType`.

Fix a regression introduced in https://reviews.llvm.org/D103532.

Reviewed By: teemperor

Differential Revision: https://reviews.llvm.org/D113673




More information about the All-commits mailing list