aboutsummaryrefslogtreecommitdiffstats
path: root/lib/VMCore
diff options
context:
space:
mode:
authorAnton Korobeynikov <asl@math.spbu.ru>2009-03-30 15:28:00 +0000
committerAnton Korobeynikov <asl@math.spbu.ru>2009-03-30 15:28:00 +0000
commitfd653071b5d418708f8e8e8ba14c619822badf23 (patch)
treef356a31b4faa4f94245a838e5569406e5de84b81 /lib/VMCore
parentfca82deecb1e1909a97db41cf324bf70e39af1e5 (diff)
downloadexternal_llvm-fd653071b5d418708f8e8e8ba14c619822badf23.zip
external_llvm-fd653071b5d418708f8e8e8ba14c619822badf23.tar.gz
external_llvm-fd653071b5d418708f8e8e8ba14c619822badf23.tar.bz2
Properly propagate Kind.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@68033 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore')
-rw-r--r--lib/VMCore/Constants.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/VMCore/Constants.cpp b/lib/VMCore/Constants.cpp
index 62b3a0c..72197e6 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;