From: Anton Korobeynikov Date: Mon, 30 Mar 2009 15:28:00 +0000 (+0000) Subject: Properly propagate Kind. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=fd653071b5d418708f8e8e8ba14c619822badf23;p=oota-llvm.git Properly propagate Kind. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@68033 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/VMCore/Constants.cpp b/lib/VMCore/Constants.cpp index 62b3a0c6916..72197e6203c 100644 --- a/lib/VMCore/Constants.cpp +++ b/lib/VMCore/Constants.cpp @@ -110,7 +110,7 @@ bool Constant::ContainsRelocations(unsigned Kind) const { } for (unsigned i = 0, e = getNumOperands(); i != e; ++i) - if (getOperand(i)->ContainsRelocations()) + if (getOperand(i)->ContainsRelocations(Kind)) return true; return false;