Skip to content

"Invalid cast" with log ret #935

Closed
Closed

Description

@jruderman
fn f() { log ret; }
fn main() { }

Assertion failed: (S->getType()->isPointerTy() && "Invalid cast"), function getPointerCast, file Constants.cpp, line 1275.

Activity

  1. marijnh commented on Sep 21, 2011

    @marijnh
    Contributor

    The patch caused several issues. I've reverted it for now.

  2. added a commit that references this issue on Sep 21, 2011
    07eb29d
  3. added 2 commits that reference this issue on Sep 22, 2011
    f19ab1f
    80778f6
  4. jruderman commented on Sep 23, 2011

    @jruderman
    ContributorAuthor

    I guess this was fixed for good in graydon@4204845. I added this issue's testcase, plus a few more, in graydon@7b1a3bb.

  5. added a commit that references this issue on Sep 23, 2011
    7b1a3bb
  6. catamorphism commented on Jul 26, 2012

    @catamorphism
    Contributor

    I'm not sure exactly what happened here, but the unreachable-code.rs test had disappeared from the repo. I re-added (and updated) it, and it works, except for the last function (fail_then_concat). I'll open up a new bug for that.

  7. added a commit that references this issue on Aug 1, 2026
  8. added 2 commits that reference this issue on Aug 21, 2026
    efff774
    ee8afea
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