forked from OSchip/llvm-project
DebugInfo: Assume valid pointer in DISubprogram::replaceFunction()
Other accessors assume this already; not sure how `replaceFunction()` got left behind. llvm-svn: 234782
This commit is contained in:
parent
09dfd2544e
commit
f24e76c36c
|
@ -524,10 +524,7 @@ public:
|
|||
|
||||
Function *getFunction() const { return get()->getFunction(); }
|
||||
|
||||
void replaceFunction(Function *F) {
|
||||
if (auto *N = get())
|
||||
N->replaceFunction(F);
|
||||
}
|
||||
void replaceFunction(Function *F) { get()->replaceFunction(F); }
|
||||
DIArray getTemplateParams() const {
|
||||
return DIArray(get()->getTemplateParams());
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue