Skip to content

Commit 2ddfb3a

Browse files
committed
[AVR] Use 2-byte alignment for 16-bit and wider types, 1-byte alignment for
everything else. (avr-rust/rust-legacy-fork#63)
1 parent b93dfd3 commit 2ddfb3a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Target/AVR/AVRTargetMachine.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525

2626
namespace llvm {
2727

28-
static const char *AVRDataLayout = "e-p:16:16:16-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-n8";
28+
static const char *AVRDataLayout = "e-p:16:16-i8:8-i16:16-i32:16-i64:16-f32:16-f64:16-n8-a:16";
2929

3030
/// Processes a CPU name.
3131
static StringRef getCPU(StringRef CPU) {

0 commit comments

Comments
 (0)