[llvm-branch-commits] [llvm-branch] r134603 - /llvm/branches/type-system-rewrite/lib/VMCore/Constants.cpp

Chris Lattner sabre at nondot.org
Wed Jul 6 22:47:29 PDT 2011


Author: lattner
Date: Thu Jul  7 00:47:29 2011
New Revision: 134603

URL: http://llvm.org/viewvc/llvm-project?rev=134603&view=rev
Log:
fix a corner-case bug preventing office-ispell from linking.

Modified:
    llvm/branches/type-system-rewrite/lib/VMCore/Constants.cpp

Modified: llvm/branches/type-system-rewrite/lib/VMCore/Constants.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/branches/type-system-rewrite/lib/VMCore/Constants.cpp?rev=134603&r1=134602&r2=134603&view=diff
==============================================================================
--- llvm/branches/type-system-rewrite/lib/VMCore/Constants.cpp (original)
+++ llvm/branches/type-system-rewrite/lib/VMCore/Constants.cpp Thu Jul  7 00:47:29 2011
@@ -844,7 +844,7 @@
 Constant *ConstantExpr::
 getWithOperands(ArrayRef<Constant*> Ops, const Type *Ty) const {
   assert(Ops.size() == getNumOperands() && "Operand count mismatch!");
-  bool AnyChange = false;
+  bool AnyChange = Ty != getType();
   for (unsigned i = 0; i != Ops.size(); ++i)
     AnyChange |= Ops[i] != getOperand(i);
   





More information about the llvm-branch-commits mailing list