Page MenuHomePhabricator

[AArch64/ARM] Fix two compiler warnings in InstructionSelector, NFCI
ClosedPublic

Authored by Hahnfeld on Mar 1 2019, 10:19 AM.

Details

Summary
  1. GCC complains that KnownValid is set but not used.
  2. In ARMInstructionSelector::selectGlobal() the code is mixing "enumeral and non-enumeral type in conditional expression". Solve this by casting to unsigned which is the final type anyway.

Diff Detail

Repository
rL LLVM

Event Timeline

Hahnfeld created this revision.Mar 1 2019, 10:19 AM
aemerson accepted this revision.Mar 3 2019, 10:04 PM
This revision is now accepted and ready to land.Mar 3 2019, 10:04 PM
This revision was automatically updated to reflect the committed changes.