[Lldb-commits] [lldb] [LLDB] Add DIL code for handling plain variable names. (PR #120971)
Pavel Labath via lldb-commits
lldb-commits at lists.llvm.org
Fri Feb 28 05:11:49 PST 2025
================
@@ -0,0 +1,23 @@
+//===-- DILAST.cpp --------------------------------------------------------===//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+//
+//===----------------------------------------------------------------------===//
+
+#include "lldb/ValueObject/DILAST.h"
+#include "llvm/Support/ErrorHandling.h"
+
+namespace lldb_private::dil {
+
+llvm::Expected<lldb::ValueObjectSP> ErrorNode::Accept(Visitor *v) const {
+ llvm_unreachable("Attempting to Visit a DIL ErrorNode.");
+ return lldb::ValueObjectSP();
----------------
labath wrote:
```suggestion
```
This is dead code as llvm_unreachable aborts if its ever reached.
https://github.com/llvm/llvm-project/pull/120971
More information about the lldb-commits
mailing list