Details
- Reviewers
courbet
Diff Detail
- Repository
- rG LLVM Github Monorepo
Unit Tests
Event Timeline
llvm/include/llvm/MC/MCSymbol.h | ||
---|---|---|
345 | I can't convince myself that all callers pass a non-zero value for Align. In particular, I found that AsmPrinter::emitGlobalVariable does: OutStreamer->emitCommonSymbol(GVSym, Size, SupportsAlignment ? Alignment.value() : 0); |
llvm/include/llvm/MC/MCSymbol.h | ||
---|---|---|
345 | Yes this has been added by mistake many years ago. I'm preparing a patch to revert to the old behavior where 0 is not a valid input anymore. Once this is accepted this will be NFC. |
I can't convince myself that all callers pass a non-zero value for Align. In particular, I found that AsmPrinter::emitGlobalVariable does:
OutStreamer->emitCommonSymbol(GVSym, Size, SupportsAlignment ? Alignment.value() : 0);