Michael137 added a comment.

This seems to cause issues when `var->getType() == const 
llvm::APFloatBase::roundingMode`. Triggered assertion `Assertion failed: 
(type->isIntegerType() && "Illegal type in IntegerLiteral"), function 
IntegerLiteral, file Expr.cpp, line 892` when doing the following:

1. `lldb -- ./bin/lldb a.out`
2. `b LookupLocalVariable`
3. step a couple of times until `decl_context` is declared
4. `p decl_context`

It looks ike the `dyn_cast` to `EnumType` fails and thus 
`qt.getUnqualifiedType()` which we pass into `IntegerLiteral::Create` remains 
an EnumType, which breaks the invariant

Investigating further...


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D81471/new/

https://reviews.llvm.org/D81471

_______________________________________________
lldb-commits mailing list
lldb-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to