projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
62815d9
)
Allocation insts always have one operand
author
Chris Lattner
<sabre@nondot.org>
Wed, 11 Sep 2002 00:22:39 +0000
(
00:22
+0000)
committer
Chris Lattner
<sabre@nondot.org>
Wed, 11 Sep 2002 00:22:39 +0000
(
00:22
+0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3677
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/VMCore/iMemory.cpp
patch
|
blob
|
history
diff --git
a/lib/VMCore/iMemory.cpp
b/lib/VMCore/iMemory.cpp
index 4f6cefdb261833379a2c5e8270373ec2e5b591ff..1738d6e6a2f6050aef35943a8ec18b8b8b888d2b 100644
(file)
--- a/
lib/VMCore/iMemory.cpp
+++ b/
lib/VMCore/iMemory.cpp
@@
-24,8
+24,7
@@
AllocationInst::AllocationInst(const Type *Ty, Value *ArraySize, unsigned iTy,
}
bool AllocationInst::isArrayAllocation() const {
- return getNumOperands() == 1 &&
- getOperand(0) != ConstantUInt::get(Type::UIntTy, 1);
+ return getOperand(0) != ConstantUInt::get(Type::UIntTy, 1);
}
const Type *AllocationInst::getAllocatedType() const {