Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
clang/lib/AST/Interp/InterpBuiltin.cpp | ||
---|---|---|
195 | We have platforms on which the width of an integer is not 32-bits; because this is pushing values back onto the stack, won't we run into some odd issues where builtin + 1 would be adding a 32-bit and a 16-bit value? |
clang/lib/AST/Interp/InterpBuiltin.cpp | ||
---|---|---|
195 | Yes, you don't even need to add anything for it to fail. I can add a way of doing that in a follow-up commit. And/or add an assertion now. Also, what platform would that be? So I can add a test later. |
LGTM
clang/lib/AST/Interp/InterpBuiltin.cpp | ||
---|---|---|
195 | AVR and MSP430 both use 16-bit int, I don't know of anyone using 8-bit currently. You can search for IntWidth = to see the choices made by various targets (default is 32-bit though). |
We have platforms on which the width of an integer is not 32-bits; because this is pushing values back onto the stack, won't we run into some odd issues where builtin + 1 would be adding a 32-bit and a 16-bit value?