forked from OSchip/llvm-project
R600InstrInfo.cpp - Add getTransSwizzle assert for the swizzle op index. NFCI.
Fixes static analyzer undefined value warning. llvm-svn: 360239
This commit is contained in:
parent
aa1b6f1cfb
commit
02937dad69
|
@ -401,6 +401,7 @@ Swizzle(std::vector<std::pair<int, unsigned>> Src,
|
|||
}
|
||||
|
||||
static unsigned getTransSwizzle(R600InstrInfo::BankSwizzle Swz, unsigned Op) {
|
||||
assert(Op < 3 && "Out of range swizzle index");
|
||||
switch (Swz) {
|
||||
case R600InstrInfo::ALU_VEC_012_SCL_210: {
|
||||
unsigned Cycles[3] = { 2, 1, 0};
|
||||
|
|
Loading…
Reference in New Issue