[llvm] a1ae56d - Remove incorrect comment in getSingleUndroppableUse. NFC
Anna Thomas via llvm-commits
llvm-commits at lists.llvm.org
Tue Sep 14 06:30:02 PDT 2021
Author: Anna Thomas
Date: 2021-09-14T09:29:55-04:00
New Revision: a1ae56d6ad9ae823241b384178910576590c223b
URL: https://github.com/llvm/llvm-project/commit/a1ae56d6ad9ae823241b384178910576590c223b
DIFF: https://github.com/llvm/llvm-project/commit/a1ae56d6ad9ae823241b384178910576590c223b.diff
LOG: Remove incorrect comment in getSingleUndroppableUse. NFC
We traverse the entire use list to find the undroppable use.
Added:
Modified:
llvm/include/llvm/IR/Value.h
Removed:
################################################################################
diff --git a/llvm/include/llvm/IR/Value.h b/llvm/include/llvm/IR/Value.h
index a81b745b36e29..d19c5af87fb7d 100644
--- a/llvm/include/llvm/IR/Value.h
+++ b/llvm/include/llvm/IR/Value.h
@@ -454,9 +454,6 @@ class Value {
/// Return true if there is exactly one use of this value that cannot be
/// dropped.
- ///
- /// This is specialized because it is a common request and does not require
- /// traversing the whole use list.
Use *getSingleUndroppableUse();
const Use *getSingleUndroppableUse() const {
return const_cast<Value *>(this)->getSingleUndroppableUse();
More information about the llvm-commits
mailing list