forked from OSchip/llvm-project
				
			use getArgOperand (corrected by CallInst::ArgOffset) instead of getOperand
llvm-svn: 107273
This commit is contained in:
		
							parent
							
								
									f628ecd15f
								
							
						
					
					
						commit
						743b3fd196
					
				| 
						 | 
					@ -548,7 +548,8 @@ protected:
 | 
				
			||||||
    CI->eraseFromParent();
 | 
					    CI->eraseFromParent();
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
  bool isFoldable(unsigned SizeCIOp, unsigned, bool) const {
 | 
					  bool isFoldable(unsigned SizeCIOp, unsigned, bool) const {
 | 
				
			||||||
    if (ConstantInt *SizeCI = dyn_cast<ConstantInt>(CI->getOperand(SizeCIOp)))
 | 
					      if (ConstantInt *SizeCI = dyn_cast<ConstantInt>(CI->getArgOperand(SizeCIOp
 | 
				
			||||||
 | 
					                                                        - CallInst::ArgOffset)))
 | 
				
			||||||
      return SizeCI->isAllOnesValue();
 | 
					      return SizeCI->isAllOnesValue();
 | 
				
			||||||
    return false;
 | 
					    return false;
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue