[llvm] 01cfc8a - [NFC][Alignment] Remove dead code
Guillaume Chatelet via llvm-commits
llvm-commits at lists.llvm.org
Mon Jun 20 02:48:06 PDT 2022
Author: Guillaume Chatelet
Date: 2022-06-20T09:47:18Z
New Revision: 01cfc8a05aef88039b863cab39e197d9cc787022
URL: https://github.com/llvm/llvm-project/commit/01cfc8a05aef88039b863cab39e197d9cc787022
DIFF: https://github.com/llvm/llvm-project/commit/01cfc8a05aef88039b863cab39e197d9cc787022.diff
LOG: [NFC][Alignment] Remove dead code
Added:
Modified:
llvm/include/llvm/Support/Alignment.h
Removed:
################################################################################
diff --git a/llvm/include/llvm/Support/Alignment.h b/llvm/include/llvm/Support/Alignment.h
index ede17ce0cbca..24a2f6244c89 100644
--- a/llvm/include/llvm/Support/Alignment.h
+++ b/llvm/include/llvm/Support/Alignment.h
@@ -314,11 +314,6 @@ bool operator>=(MaybeAlign Lhs, MaybeAlign Rhs) = delete;
bool operator<(MaybeAlign Lhs, MaybeAlign Rhs) = delete;
bool operator>(MaybeAlign Lhs, MaybeAlign Rhs) = delete;
-inline Align operator*(Align Lhs, uint64_t Rhs) {
- assert(Rhs > 0 && "Rhs must be positive");
- return Align(Lhs.value() * Rhs);
-}
-
inline Align operator/(Align Lhs, uint64_t Divisor) {
assert(llvm::isPowerOf2_64(Divisor) &&
"Divisor must be positive and a power of 2");
More information about the llvm-commits
mailing list