[Lldb-commits] [lldb] [LLDB] Add `ScalarLiteralNode` and literal parsing in DIL (PR #152308)
Ilia Kuklin via lldb-commits
lldb-commits at lists.llvm.org
Thu Aug 14 08:02:35 PDT 2025
================
@@ -54,6 +54,15 @@ class Interpreter : Visitor {
Visit(const ArraySubscriptNode *node) override;
llvm::Expected<lldb::ValueObjectSP>
Visit(const BitFieldExtractionNode *node) override;
+ llvm::Expected<lldb::ValueObjectSP>
+ Visit(const IntegerLiteralNode *node) override;
+ llvm::Expected<lldb::ValueObjectSP>
+ Visit(const FloatLiteralNode *node) override;
+
+ llvm::Expected<CompilerType>
----------------
kuilpd wrote:
It's not integer promotion, just type inference from a literal's value and suffixes. Technically, right now it's exactly C99 rules, so I can add a comment that as of now this follows C99 rules.
https://github.com/llvm/llvm-project/pull/152308
More information about the lldb-commits
mailing list