File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -12555,10 +12555,13 @@ INLINE static OPERAND *
1255512555cons_expression_metadata_operand (LL_Type *llTy)
1255612556{
1255712557 // FIXME: we don't need to always do this, do we? do a type check here
12558- LL_DebugInfo *di = cpu_llvm_module->debug_info ;
12559- unsigned v = lldbg_encode_expression_arg (LL_DW_OP_deref, 0 );
12560- LL_MDRef exprMD = lldbg_emit_expression_mdnode (di, 1 , v);
12561- return make_mdref_op (exprMD);
12558+ if (llTy->data_type == LL_PTR) {
12559+ LL_DebugInfo *di = cpu_llvm_module->debug_info ;
12560+ unsigned v = lldbg_encode_expression_arg (LL_DW_OP_deref, 0 );
12561+ LL_MDRef exprMD = lldbg_emit_expression_mdnode (di, 1 , v);
12562+ return make_mdref_op (exprMD);
12563+ }
12564+ return NULL ;
1256212565}
1256312566
1256412567INLINE static bool
You can’t perform that action at this time.
0 commit comments