OSDN Git Service

[IR] Disallow loading and storing unsized types
authorSanjoy Das <sanjoy@playingwithpointers.com>
Wed, 1 Jun 2016 16:13:10 +0000 (16:13 +0000)
committerSanjoy Das <sanjoy@playingwithpointers.com>
Wed, 1 Jun 2016 16:13:10 +0000 (16:13 +0000)
commitda6ed23fe1293d1f69528a76477adfc861aef333
treef63a8e07ef18ba5650f96525d9295a72261f4f50
parentcc0c9e0cf6a583c82e2dc4b604edb8c4e88659b7
[IR] Disallow loading and storing unsized types

Summary:
It isn't clear what is the operational meaning of loading or storing an
unsized types, since it cannot be lowered into something meaningful.
Since there does not seem to be any practical need for it either, make
such loads and stores illegal IR.

Reviewers: majnemer, chandlerc

Subscribers: mcrosier, llvm-commits

Differential Revision: http://reviews.llvm.org/D20846

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@271402 91177308-0d34-0410-b5e6-96231b3b80d8
docs/LangRef.rst
lib/IR/Verifier.cpp
test/Verifier/unsized-types.ll [new file with mode: 0644]