diff options
Diffstat (limited to 'llvm/lib/Target/WebAssembly/WebAssemblyAsmPrinter.cpp')
-rw-r--r-- | llvm/lib/Target/WebAssembly/WebAssemblyAsmPrinter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/WebAssembly/WebAssemblyAsmPrinter.cpp b/llvm/lib/Target/WebAssembly/WebAssemblyAsmPrinter.cpp index 3851300..0d3f516 100644 --- a/llvm/lib/Target/WebAssembly/WebAssemblyAsmPrinter.cpp +++ b/llvm/lib/Target/WebAssembly/WebAssemblyAsmPrinter.cpp @@ -506,7 +506,7 @@ void WebAssemblyAsmPrinter::EmitTargetFeatures(Module &M) { // This is an "architecture", not a "feature", but we emit it as such for // the benefit of tools like Binaryen and consistency with other producers. // FIXME: Subtarget is null here, so can't Subtarget->hasAddr64() ? - if (M.getDataLayout().getMaxPointerSize() == 8) { + if (M.getDataLayout().getPointerSize() == 8) { // Can't use EmitFeature since "wasm-feature-memory64" is not a module // flag. EmittedFeatures.push_back({wasm::WASM_FEATURE_PREFIX_USED, "memory64"}); |