diff --git a/llvm/include/llvm/Transforms/Utils/Local.h b/llvm/include/llvm/Transforms/Utils/Local.h --- a/llvm/include/llvm/Transforms/Utils/Local.h +++ b/llvm/include/llvm/Transforms/Utils/Local.h @@ -286,7 +286,6 @@ /// Implementation of salvageDebugInfo, applying only to instructions in /// \p Insns, rather than all debug users from findDbgUsers( \p I). -/// Returns true if any debug users were updated. /// Mark undef if salvaging cannot be completed. void salvageDebugInfoForDbgValues(Instruction &I, ArrayRef Insns); diff --git a/llvm/lib/Transforms/Utils/Local.cpp b/llvm/lib/Transforms/Utils/Local.cpp --- a/llvm/lib/Transforms/Utils/Local.cpp +++ b/llvm/lib/Transforms/Utils/Local.cpp @@ -1735,8 +1735,8 @@ replaceOneDbgValueForAlloca(DVI, NewAllocaAddress, Builder, Offset); } -/// Where possible to salvage debug information for \p I do so -/// and return True. If not possible mark undef and return False. +/// Where possible to salvage debug information for \p I do so. +/// If not possible mark undef. void llvm::salvageDebugInfo(Instruction &I) { SmallVector DbgUsers; findDbgUsers(DbgUsers, &I);