All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Jonathan Neuschäfer" <j.neuschaefer@gmx.net>
To: linux-sparse@vger.kernel.org
Cc: Pekka Enberg <penberg@kernel.org>
Subject: sparse-llvm: void return type compiles to i8
Date: Sun, 19 Aug 2012 02:32:00 +0200	[thread overview]
Message-ID: <20120819003159.GB2880@debian.debian> (raw)

Hi!

A simple function like this will compile to the following llvm bitcode:

	/* C */
	void func(void) {
		return;
	}

	/* LLVM */
	define i8 @func() {
	L0:
	  ret void
	}

The return type of the function and the type in the return instruction
don't match.

I found this inconsistency by running LLVM's bitcode validation on the
bitcode produced by sparse-llvm.


Greetings,
Jonathan Neuschäfer
--
To unsubscribe from this list: send the line "unsubscribe linux-sparse" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

                 reply	other threads:[~2012-08-19  0:32 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20120819003159.GB2880@debian.debian \
    --to=j.neuschaefer@gmx.net \
    --cc=linux-sparse@vger.kernel.org \
    --cc=penberg@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.