Properly propagate Kind.
authorAnton Korobeynikov <asl@math.spbu.ru>
Mon, 30 Mar 2009 15:28:00 +0000 (15:28 +0000)
committerAnton Korobeynikov <asl@math.spbu.ru>
Mon, 30 Mar 2009 15:28:00 +0000 (15:28 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@68033 91177308-0d34-0410-b5e6-96231b3b80d8

lib/VMCore/Constants.cpp

index 62b3a0c69162db4937c57c19775af04419c10410..72197e6203c476fa53a2f2df1ba3838d5dea5ad6 100644 (file)
@@ -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;