summaryrefslogtreecommitdiffstats
path: root/llvm/tools/obj2yaml/wasm2yaml.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/tools/obj2yaml/wasm2yaml.cpp')
-rw-r--r--llvm/tools/obj2yaml/wasm2yaml.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/tools/obj2yaml/wasm2yaml.cpp b/llvm/tools/obj2yaml/wasm2yaml.cpp
index 7ec344a35ba..210ae680e1b 100644
--- a/llvm/tools/obj2yaml/wasm2yaml.cpp
+++ b/llvm/tools/obj2yaml/wasm2yaml.cpp
@@ -201,8 +201,8 @@ ErrorOr<WasmYAML::Object *> WasmDumper::dump() {
for (auto &Global : Obj.globals()) {
WasmYAML::Global G;
G.Index = Global.Index;
- G.Type = Global.Type;
- G.Mutable = Global.Mutable;
+ G.Type = Global.Type.Type;
+ G.Mutable = Global.Type.Mutable;
G.InitExpr = Global.InitExpr;
GlobalSec->Globals.push_back(G);
}
OpenPOWER on IntegriCloud