================
@@ -97,7 +97,7 @@ EHScopeStack::getInnermostActiveNormalCleanup() const {
char *EHScopeStack::allocate(size_t size) {
size = llvm::alignTo(size, ScopeStackAlignment);
if (!startOfBuffer) {
- unsigned capacity = llvm::PowerOf2Ceil(std::max(size, 1024ul));
+ unsigned capacity = llvm::PowerOf2Ceil(std::max<size_t>(size, 1024ul));
----------------
andykaylor wrote:
That makes sense. I'm surprised no one else has run into this before.
Generally, we try to keep unrelated changes like this in a separate PR, so
that, for example, this change wouldn't be reverted if we needed to revert the
rest of this PR for some reason.
https://github.com/llvm/llvm-project/pull/173802
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits