[llvm] 0778cad - Fix style warnings.
Luqman Aden via llvm-commits
llvm-commits at lists.llvm.org
Wed Oct 14 19:37:20 PDT 2020
Author: Luqman Aden
Date: 2020-10-14T19:34:31-07:00
New Revision: 0778cad9f325df4d7b32b22f3dba201a16a0b8fe
URL: https://github.com/llvm/llvm-project/commit/0778cad9f325df4d7b32b22f3dba201a16a0b8fe
DIFF: https://github.com/llvm/llvm-project/commit/0778cad9f325df4d7b32b22f3dba201a16a0b8fe.diff
LOG: Fix style warnings.
Added:
Modified:
llvm/include/llvm/Object/COFF.h
Removed:
################################################################################
diff --git a/llvm/include/llvm/Object/COFF.h b/llvm/include/llvm/Object/COFF.h
index 649042579c94..b50d2c3698a2 100644
--- a/llvm/include/llvm/Object/COFF.h
+++ b/llvm/include/llvm/Object/COFF.h
@@ -582,14 +582,14 @@ struct coff_tls_directory {
return 0;
}
- void setAlignment(uint32_t align) {
- if (!align) {
+ void setAlignment(uint32_t Align) {
+ if (!Align) {
Characteristics &= ~COFF::IMAGE_SCN_ALIGN_MASK;
} else {
- assert(llvm::isPowerOf2_32(align) && "alignment is not a power of 2");
- uint32_t p2Align = llvm::Log2_32(align);
- assert(p2Align <= 13 && "invalid alignment requested");
- Characteristics |= (p2Align + 1) << 20;
+ assert(llvm::isPowerOf2_32(Align) && "alignment is not a power of 2");
+ uint32_t P2Align = llvm::Log2_32(Align);
+ assert(P2Align <= 13 && "invalid alignment requested");
+ Characteristics |= (P2Align + 1) << 20;
}
}
};
More information about the llvm-commits
mailing list