Skip to content

[SPEC2006] error: value doesn't match function result type '%x_struct = type { i32, i32 }' #40

Description

@zqb-all

spec2k6 462.libquantum build fail.
one of the errors can be reproduce by the following code:

struct x_struct {
  int y;
  int z;
};

typedef struct x_struct x;

x foo(int a)
{
	x m;
	if (a)
		exit(1);
	return m;
}

cmd

xcalcc -c a.c

error:

2023-10-28 15:56:45,554 - xcalcc - ERROR - /open64/bin/../lib/gcc-lib/x86_64-open64-linux/5.0/llc: error: /open64/bin/../lib/gcc-lib/x86_64-open64-linux/5.0/llc: a.O.ll:18:7: error: value doesn't match function result type '%x_struct = type { i32, i32 }'
  ret void
      ^ (xcalcc:630)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions