Index: llvm/docs/LangRef.rst =================================================================== --- llvm/docs/LangRef.rst +++ llvm/docs/LangRef.rst @@ -717,12 +717,11 @@ iterate over them as an array, alignment padding would break this iteration. The maximum alignment is ``1 << 32``. -For global variables declarations, as well as definitions that may be +For global variable declarations, as well as definitions that may be replaced at link time (``linkonce``, ``weak``, ``extern_weak`` and ``common`` -linkage types), LLVM makes no assumptions about the allocation size of the -variables, except that they may not overlap. The alignment of a global variable -declaration or replaceable definition must not be greater than the alignment of -the definition it resolves to. +linkage types), the allocation size and alignment of the definition it resolves +to must be greater than or equal to that of the declaration or replaceable +definition, otherwise the behavior is undefined. Globals can also have a :ref:`DLL storage class `, an optional :ref:`runtime preemption specifier `,