diff options
author | Tristan Gingold <tgingold@free.fr> | 2020-08-04 18:42:06 +0200 |
---|---|---|
committer | Tristan Gingold <tgingold@free.fr> | 2020-08-04 18:42:06 +0200 |
commit | 1b27a030dace1c89b0cabf6d26bffb383223d74a (patch) | |
tree | a53afe4d1e838f0def3416e3c9b656051ea9f5de /src/ortho/llvm6 | |
parent | 1d5221aa49ad6bf151407b097e32330391ebf564 (diff) | |
download | ghdl-1b27a030dace1c89b0cabf6d26bffb383223d74a.tar.gz ghdl-1b27a030dace1c89b0cabf6d26bffb383223d74a.tar.bz2 ghdl-1b27a030dace1c89b0cabf6d26bffb383223d74a.zip |
llvm6: fix debug info generation for arrays
Diffstat (limited to 'src/ortho/llvm6')
-rw-r--r-- | src/ortho/llvm6/llvm-cbindings.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ortho/llvm6/llvm-cbindings.cpp b/src/ortho/llvm6/llvm-cbindings.cpp index 1841f5f8e..6e1964e2b 100644 --- a/src/ortho/llvm6/llvm-cbindings.cpp +++ b/src/ortho/llvm6/llvm-cbindings.cpp @@ -920,7 +920,7 @@ addArrayDebug(OTnodeArr *Atype, unsigned Len) OTnode ElType = static_cast<OTnodeArr *>(Atype)->ElType; Atype->Dbg = DBuilder->createArrayType - (Atype->getSize(), Atype->getAlignment(), + (Atype->getBitSize(), /* align */ 0, ElType->Dbg, DBuilder->getOrCreateArray(Subscripts)); } #endif |