swift
[swiftc (69 vs. 5162)] Add crasher in swift::SILModule::constructSIL(...)
#4807
Merged

[swiftc (69 vs. 5162)] Add crasher in swift::SILModule::constructSIL(...) #4807

swift-ci merged 1 commit into swiftlang:master from swiftc-28419-swift-silmodule-constructsil
practicalswift
practicalswift8 years ago

Add test case for crash triggered in swift::SILModule::constructSIL(...).

Current number of unresolved compiler crashers: 69 (5162 resolved)

Assertion failure in lib/SILGen/ManagedValue.h (line 112):

Assertion `isLValue() && "This isn't an lvalue"' failed.

When executing: swift::SILValue swift::Lowering::ManagedValue::getLValueAddress() const

Assertion context:

    // either +0 or trivial (in which case +0 vs +1 doesn't matter).
    return !hasCleanup();
  }

  SILValue getLValueAddress() const {
    assert(isLValue() && "This isn't an lvalue");
    return getValue();
  }

  SILValue getUnmanagedValue() const {
    assert(!hasCleanup());

Stack trace:

swift: /path/to/swift/lib/SILGen/ManagedValue.h:112: swift::SILValue swift::Lowering::ManagedValue::getLValueAddress() const: Assertion `isLValue() && "This isn't an lvalue"' failed.
14 swift           0x0000000000944dba swift::SILModule::constructSIL(swift::ModuleDecl*, swift::SILOptions&, swift::FileUnit*, llvm::Optional<unsigned int>, bool, bool) + 1290
15 swift           0x0000000000945016 swift::performSILGeneration(swift::FileUnit&, swift::SILOptions&, llvm::Optional<unsigned int>, bool) + 118
17 swift           0x00000000007e0947 swift::performFrontend(llvm::ArrayRef<char const*>, char const*, void*, swift::FrontendObserver*) + 2887
18 swift           0x00000000007a8e08 main + 2984
Stack dump:
0.  Program arguments: /path/to/swift/bin/swift -frontend -c -primary-file validation-test/compiler_crashers/28419-swift-silmodule-constructsil.swift -target x86_64-unknown-linux-gnu -disable-objc-interop -module-name main -o /tmp/28419-swift-silmodule-constructsil-a782d2.o
<unknown>:0: error: unable to execute command: Aborted
<unknown>:0: error: compile command failed due to signal (use -v to see invocation)
practicalswift [swiftc (69 vs. 5162)] Add crasher in swift::SILModule::constructSIL(…
427c8614
practicalswift
practicalswift8 years ago

@swift-ci please smoke test and merge

swift-ci swift-ci merged d2244503 into master 8 years ago

Login to write a write a comment.

Login via GitHub

Reviewers
No reviews
Assignees
No one assigned
Labels
Milestone