forked from OSchip/llvm-project
parent
58a9d28a68
commit
9a1b8598ef
|
|
@ -899,7 +899,7 @@ void AllocaInst::setAlignment(unsigned Align) {
|
|||
|
||||
bool AllocaInst::isArrayAllocation() const {
|
||||
if (ConstantInt *CI = dyn_cast<ConstantInt>(getOperand(0)))
|
||||
return CI->getZExtValue() != 1;
|
||||
return !CI->isOne();
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue