commit | e35959170ca14c79a3653ec25aabd3125fbbe64a | [log] [tgz] |
---|---|---|
author | Than McIntosh <thanm@google.com> | Wed Aug 08 07:26:43 2018 -0400 |
committer | Than McIntosh <thanm@google.com> | Wed Aug 08 14:26:15 2018 +0000 |
tree | 9f4daecc55d7a2df67b22cb60bc5999eead72840 | |
parent | 6fc2bc63f3fa2783ab44df106c46592e004bb236 [diff] |
gollvm: sync with LLVM trunk at r339232 Updates the godumpspec sources to take into account recent changes in the DWARF reader. Change-Id: Ie3ef715ac0db7569123e887b7a4be15ecac1a0ab Reviewed-on: https://go-review.googlesource.com/128515 Reviewed-by: Cherry Zhang <cherryyz@google.com>
diff --git a/libgo/godumpspec/godumpspec.cpp b/libgo/godumpspec/godumpspec.cpp index 194162f..68507d4 100644 --- a/libgo/godumpspec/godumpspec.cpp +++ b/libgo/godumpspec/godumpspec.cpp
@@ -1235,7 +1235,8 @@ return 1; } - DWARFCompileUnit *cu = ostate.dwctxt_->getCompileUnitAtIndex(0); + DWARFCompileUnit *cu = + cast<DWARFCompileUnit>(ostate.dwctxt_->getUnitAtIndex(0)); state.readDwarf(cu); return 0;