-
Notifications
You must be signed in to change notification settings - Fork 146
[CIR][CIRGen] Handle NYI in CIRGenModule::tryEmitBaseDestructorAsAlias #1180
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
// FIXME: Remove of -clangir-disable-passes may trigger a memory safe bug in CIR internally during | ||
// lowering | ||
// RUN: %clang_cc1 -std=c++17 -triple x86_64-unknown-linux-gnu \ | ||
// RUN: -mconstructor-aliases -fclangir -emit-cir %s -o %t.cir \ | ||
// RUN: -clangir-disable-passes -o %t.cir | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Without There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why this needs to be tested under If for some reason you require There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The O1 part is surprising. I forgot removing it somehow. We still need
From the assertion, we can see it crashes due to we accessing the invalid iterators in LoweringPreparePass. We can file an issue for it then. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ok, can you file it once this lands? Thanks! There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes, of course There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Landed! Issue time :D There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Tracked here: #1234 |
||
// RUN: FileCheck %s --input-file=%t.cir | ||
|
||
namespace { | ||
struct A { | ||
~A() {} | ||
}; | ||
|
||
struct B : public A {}; | ||
} | ||
|
||
B x; | ||
|
||
// CHECK: cir.call @_ZN12_GLOBAL__N_11AD2Ev({{.*}}) : (!cir.ptr<!ty_28anonymous_namespace293A3AA>) -> () |
Uh oh!
There was an error while loading. Please reload this page.