Skip to content

ir: Ignore non-finite macro constants from macros. #583

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

Merged
merged 1 commit into from
Mar 15, 2017

Conversation

emilio
Copy link
Contributor

@emilio emilio commented Mar 15, 2017

Fixes #582.

@emilio
Copy link
Contributor Author

emilio commented Mar 15, 2017

r? @fitzgen

Copy link
Member

@fitzgen fitzgen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

src/ir/var.rs Outdated
@@ -146,6 +146,11 @@ impl ClangSubItemParser for Var {
let (type_kind, val) = match value {
EvalResult::Invalid => return Err(ParseError::Continue),
EvalResult::Float(f) => {
// Bail out if this number is not finite. We could
// generate those, I guess, but its utility is unclear.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess I'd flip this question on its head: why wouldn't we want to generate bindings for them? That's kinda the business we're in ;-P

File a follow up? Maybe it would be a good first bug?

@fitzgen
Copy link
Member

fitzgen commented Mar 15, 2017

@bors-servo r+

Please also file that follow up issue :)

@bors-servo
Copy link

📌 Commit abed16d has been approved by fitzgen

@bors-servo
Copy link

⌛ Testing commit abed16d with merge e686c6f...

bors-servo pushed a commit that referenced this pull request Mar 15, 2017
ir: Ignore non-finite macro constants from macros.

Fixes #582.
@emilio
Copy link
Contributor Author

emilio commented Mar 15, 2017

@bors-servo r-

Yeah, I changed my mind. Also have another test case for it.

@emilio
Copy link
Contributor Author

emilio commented Mar 15, 2017

ok, this should be better. r? @fitzgen

Copy link
Member

@fitzgen fitzgen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great :)

@fitzgen
Copy link
Member

fitzgen commented Mar 15, 2017

@bors-servo r+

@bors-servo
Copy link

📌 Commit 22d5a8f has been approved by fitzgen

@bors-servo
Copy link

⌛ Testing commit 22d5a8f with merge 08230b7...

bors-servo pushed a commit that referenced this pull request Mar 15, 2017
ir: Ignore non-finite macro constants from macros.

Fixes #582.
@bors-servo
Copy link

☀️ Test successful - status-travis
Approved by: fitzgen
Pushing 08230b7 to master...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants