This is an archive of the discontinued LLVM Phabricator instance.

Fix wasm backend compilation on gcc 5.4: variable name cannot match class
ClosedPublic

Authored by kripken on Aug 8 2018, 1:44 PM.

Details

Summary

gcc does not like

const Region *Region;

It wants a different name for the variable.

Is there a better convention for what name to use in such a case?

Diff Detail

Repository
rL LLVM

Event Timeline

kripken created this revision.Aug 8 2018, 1:44 PM
sbc100 added a comment.Aug 8 2018, 1:53 PM

Hmm. I don't know the convention. Not a huge and of "The" prefix. LGTM otherwise.

I'm OK with The. Or how about changing the class name to SortRegion and leave the variable name as is? I like either way.

aheejin accepted this revision.Aug 9 2018, 3:07 PM

I guess I'll just land it..?

This revision is now accepted and ready to land.Aug 9 2018, 3:07 PM

Thanks aheejin!

It's been a while since I submitted a patch to LLVM - I'm not sure how landing works? Do I need to do anything?

Do you have a commit access to LLVM?

No, I think I don't. I think someone else landed the few patches I had a few years ago.

OK then I'll land this. Thank you!

This revision was automatically updated to reflect the committed changes.