llvm::max(Align, MaybeAlign) and llvm::max(MaybeAlign, Align) are
not used often enough to be required. They also make the code more opaque.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
llvm/lib/Transforms/IPO/AttributorAttributes.cpp | ||
---|---|---|
6252 | Why is this OK ? I'm seeing: if (!SimpleV.hasValue()) return APInt(64, 0); in getAPIInt |
Comment Actions
address comments and rebase
llvm/lib/Transforms/IPO/AttributorAttributes.cpp | ||
---|---|---|
6252 | The assert above expects a value for alignment API and the value cannot be 0 for a valid alignment (should be at least 1). |
Why is this OK ? I'm seeing:
in getAPIInt