llvm.org GIT mirror llvm / e1f65e2
X86: only access operands if they are present If there is no associated immediate (MS style inline asm), do not try to access the operand, assume that it is valid. This should fix the buildbots after SVN r225941. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@225950 91177308-0d34-0410-b5e6-96231b3b80d8 Saleem Abdulrasool 5 years ago
1 changed file(s) with 2 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
22762276 switch (Inst.getOpcode()) {
22772277 default: return true;
22782278 case X86::INT:
2279 if (Inst.getNumOperands() == 0)
2280 return true;
22792281 assert(Inst.getOperand(0).isImm() && "expected immediate");
22802282 if (Inst.getOperand(0).getImm() > 255) {
22812283 Error(Ops[1]->getStartLoc(), "interrupt vector must be in range [0-255]");