diff --git a/llvm/include/llvm/Constants.h b/llvm/include/llvm/Constants.h index 7a9a0e73242c02987fc50106a8271b4a40632d8e..f00a763edb2e9563b1d4472679d33b8e6a9cbf17 100644 --- a/llvm/include/llvm/Constants.h +++ b/llvm/include/llvm/Constants.h @@ -897,7 +897,7 @@ public: /// getWithOperands - This returns the current constant expression with the /// operands replaced with the specified values. The specified operands must /// match count and type with the existing ones. - Constant *getWithOperands(llvm::ArrayRef Ops) const; + Constant *getWithOperands(ArrayRef Ops) const; virtual void destroyConstant(); virtual void replaceUsesOfWithOnConstant(Value *From, Value *To, Use *U); diff --git a/llvm/lib/VMCore/Constants.cpp b/llvm/lib/VMCore/Constants.cpp index 3c347ddd41b8726785fba44634c0051ffd036b32..c34234ad589ae0d84cbf44ef3a6ceec7ac0f4db1 100644 --- a/llvm/lib/VMCore/Constants.cpp +++ b/llvm/lib/VMCore/Constants.cpp @@ -855,7 +855,7 @@ ConstantExpr::getWithOperandReplaced(unsigned OpNo, Constant *Op) const { /// operands replaced with the specified values. The specified operands must /// match count and type with the existing ones. Constant *ConstantExpr:: -getWithOperands(llvm::ArrayRef Ops) const { +getWithOperands(ArrayRef Ops) const { assert(Ops.size() == getNumOperands() && "Operand count mismatch!"); bool AnyChange = false; for (unsigned i = 0; i != Ops.size(); ++i) {