Fix Wint-in-bool-context warning (PR32248)

llvm-svn: 297840
This commit is contained in:
Simon Pilgrim 2017-03-15 14:38:19 +00:00
parent ee55bf3e34
commit 3804a12fc3
1 changed files with 2 additions and 2 deletions

View File

@ -72,8 +72,8 @@ static bool isRFE(unsigned Opcode) {
}
static bool isSMovRel(unsigned Opcode) {
return Opcode == AMDGPU::S_MOVRELS_B32 || AMDGPU::S_MOVRELS_B64 ||
Opcode == AMDGPU::S_MOVRELD_B32 || AMDGPU::S_MOVRELD_B64;
return Opcode == AMDGPU::S_MOVRELS_B32 || Opcode == AMDGPU::S_MOVRELS_B64 ||
Opcode == AMDGPU::S_MOVRELD_B32 || Opcode == AMDGPU::S_MOVRELD_B64;
}
static bool isVInterp(unsigned Opcode) {