-
Notifications
You must be signed in to change notification settings - Fork 15.4k
[clang][bytecode] Always track item types in InterpStack #151088
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 |
|---|---|---|
|
|
@@ -329,3 +329,12 @@ void foo3 (void) | |
| void* x = 0; | ||
| void* y = &*x; | ||
| } | ||
|
|
||
| static void *FooTable[1] = { | ||
| [0] = (void *[1]) { // 1 | ||
| [0] = (void *[1]) { // 2 | ||
|
||
| [0] = (void *[1]) {} // pedantic-warning {{use of an empty initializer}} | ||
| }, | ||
| } | ||
| }; | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seeing
TYPE_SWITCHin action, I don't know if the name really reflects what it is doing. Your not really doing something different based on the type but apply "templated code" uniformly across all the types. Not a comment for this PR and I am having trouble coming up w/ a better name.