summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Utils
diff options
context:
space:
mode:
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>2015-04-15 23:19:27 +0000
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>2015-04-15 23:19:27 +0000
commit35ef22cf530c4d3f2c1de83ae6a4186c1b1efa84 (patch)
tree448b5435d3f87d8e94969a89fd766afb4ae97511 /llvm/lib/Transforms/Utils
parent798d565fd8a1f5a4a753587e5425efbdc59a5e0c (diff)
downloadbcm5719-llvm-35ef22cf530c4d3f2c1de83ae6a4186c1b1efa84.tar.gz
bcm5719-llvm-35ef22cf530c4d3f2c1de83ae6a4186c1b1efa84.zip
DebugInfo: Gut DICompileUnit and DIFile
Continuing gutting `DIDescriptor` subclasses; this edition, `DICompileUnit` and `DIFile`. In the name of PR23080. llvm-svn: 235055
Diffstat (limited to 'llvm/lib/Transforms/Utils')
-rw-r--r--llvm/lib/Transforms/Utils/CloneFunction.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Utils/CloneFunction.cpp b/llvm/lib/Transforms/Utils/CloneFunction.cpp
index f5ca7ac9efd..f200b588194 100644
--- a/llvm/lib/Transforms/Utils/CloneFunction.cpp
+++ b/llvm/lib/Transforms/Utils/CloneFunction.cpp
@@ -171,7 +171,7 @@ static void AddOperand(DICompileUnit CU, MDSubprogramArray SPs, Metadata *NewSP)
for (auto *SP : SPs)
NewSPs.push_back(SP);
NewSPs.push_back(NewSP);
- CU.replaceSubprograms(MDTuple::get(CU->getContext(), NewSPs));
+ CU->replaceSubprograms(MDTuple::get(CU->getContext(), NewSPs));
}
// Clone the module-level debug info associated with OldFunc. The cloned data
OpenPOWER on IntegriCloud