llvm-project
784dc160 - [LangRef][IR] Fix default AS documentation for allocas without explicit AS (#135942)

Commit
1 year ago
[LangRef][IR] Fix default AS documentation for allocas without explicit AS (#135942) So far, the Language Reference said that the alloca address space from the datalayout is used if no explicit address space is provided, which is not what the LLParser and the AsmWriter implement. This patch adjusts the documentation to match the implementation: The default AS 0 is used if none is explicitly specified. This is an alternative to PR #135786, which would change the parser's behavior to match the Language Reference instead.
Author
Parents
Loading