Skip to content

Commit b183a3b

Browse files
committed
Remove a pointer to void check
1 parent 8b63dfd commit b183a3b

File tree

2 files changed

+1
-7
lines changed

2 files changed

+1
-7
lines changed

lldb/source/ValueObject/DILEval.cpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -249,12 +249,6 @@ Interpreter::Visit(const UnaryOpNode *node) {
249249
if (dynamic_rhs)
250250
rhs = dynamic_rhs;
251251

252-
if (rhs->GetCompilerType().IsPointerToVoid()) {
253-
return llvm::make_error<DILDiagnosticError>(
254-
m_expr, "indirection not permitted on operand of type 'void *'",
255-
node->GetLocation());
256-
}
257-
258252
lldb::ValueObjectSP child_sp = rhs->Dereference(error);
259253
if (error.Fail())
260254
return llvm::make_error<DILDiagnosticError>(m_expr, error.AsCString(),

lldb/test/API/commands/frame/var-dil/basics/PointerArithmetic/TestFrameVarDILPointerArithmetic.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,5 +46,5 @@ def test_dereference(self):
4646
self.expect(
4747
"frame var '&*p_void'",
4848
error=True,
49-
substrs=["indirection not permitted on operand of type 'void *'"],
49+
substrs=["dereference failed: (void *) p_void"],
5050
)

0 commit comments

Comments
 (0)