diff options
author | Devang Patel <dpatel@apple.com> | 2010-03-25 05:36:13 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2010-03-25 05:36:13 +0000 |
commit | ea7b6bb32355c0d4cb1e1c16df7c8cf63787e73b (patch) | |
tree | 93e0f4188a15dd2a74dadec0f6fb8f257d6aaf51 /lib/VMCore | |
parent | f27e6088a3af277d5aeed7b554192cc62b7b40fd (diff) | |
download | external_llvm-ea7b6bb32355c0d4cb1e1c16df7c8cf63787e73b.zip external_llvm-ea7b6bb32355c0d4cb1e1c16df7c8cf63787e73b.tar.gz external_llvm-ea7b6bb32355c0d4cb1e1c16df7c8cf63787e73b.tar.bz2 |
Include isFunctionLocal while calculating folding node set provide for a MDNode.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@99484 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore')
-rw-r--r-- | lib/VMCore/Metadata.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/VMCore/Metadata.cpp b/lib/VMCore/Metadata.cpp index 06d4fd4..a6e2028 100644 --- a/lib/VMCore/Metadata.cpp +++ b/lib/VMCore/Metadata.cpp @@ -248,6 +248,7 @@ Value *MDNode::getOperand(unsigned i) const { void MDNode::Profile(FoldingSetNodeID &ID) const { for (unsigned i = 0, e = getNumOperands(); i != e; ++i) ID.AddPointer(getOperand(i)); + ID.AddBoolean(isFunctionLocal()); } void MDNode::setIsNotUniqued() { |