OSDN Git Service

[AArch64/ARM] Fix two compiler warnings in InstructionSelector, NFCI
authorJonas Hahnfeld <hahnjo@hahnjo.de>
Mon, 4 Mar 2019 08:51:32 +0000 (08:51 +0000)
committerJonas Hahnfeld <hahnjo@hahnjo.de>
Mon, 4 Mar 2019 08:51:32 +0000 (08:51 +0000)
commitdd6e8b981da23b8ead784eee8b1d866e2972c1fb
tree7fdfbd8643ba08d3d9ab15055928380a950988ef
parenta50567548632f50931cb4c1b55fd715514e62c69
[AArch64/ARM] Fix two compiler warnings in InstructionSelector, NFCI

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.

Differential Revision: https://reviews.llvm.org/D58834

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@355304 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/AArch64/AArch64InstructionSelector.cpp
lib/Target/ARM/ARMInstructionSelector.cpp