Page MenuHomePhabricator

[SPIRV] Fix build warnings

Authored by foad on Wed, Jan 25, 4:04 AM.



Fix these build warnings:

SPIRVBuiltins.cpp:1590:30: warning: 'getPrefTypeAlignment' is deprecated: use getPrefTypeAlign instead [-Wdeprecated-declarations]
SPIRVUtils.cpp:209:3: warning: default label in switch which covers all enumeration values [-Wcovered-switch-default]

Diff Detail

Event Timeline

foad created this revision.Wed, Jan 25, 4:04 AM
foad requested review of this revision.Wed, Jan 25, 4:04 AM
Herald added a project: Restricted Project. · View Herald Transcript
arsenm accepted this revision.Wed, Jan 25, 5:16 AM
arsenm added a subscriber: arsenm.
arsenm added inline comments.

I think MSVC is unhappy if you don't put an unreachable after a covered switch

This revision is now accepted and ready to land.Wed, Jan 25, 5:16 AM
This revision was automatically updated to reflect the committed changes.