[llvm-commits] CVS: llvm/lib/VMCore/iMemory.cpp

Chris Lattner lattner at cs.uiuc.edu
Tue Sep 10 19:23:01 PDT 2002


Changes in directory llvm/lib/VMCore:

iMemory.cpp updated: 1.26 -> 1.27

---
Log message:

Allocation insts always have one operand


---
Diffs of the changes:

Index: llvm/lib/VMCore/iMemory.cpp
diff -u llvm/lib/VMCore/iMemory.cpp:1.26 llvm/lib/VMCore/iMemory.cpp:1.27
--- llvm/lib/VMCore/iMemory.cpp:1.26	Tue Sep 10 10:45:53 2002
+++ llvm/lib/VMCore/iMemory.cpp	Tue Sep 10 19:22:39 2002
@@ -24,8 +24,7 @@
 }
 
 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 {





More information about the llvm-commits mailing list