mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-27 06:54:30 +00:00
reject 0 element vectors with:
@a = internal constant void bitcast(<0 x i8> <> to void) ^ Fixes PR3685 llvm-svn: 65698
This commit is contained in:
parent
3134ef23bb
commit
af8467a57f
@ -1262,6 +1262,8 @@ bool LLParser::ParseArrayVectorType(PATypeHolder &Result, bool isVector) {
|
||||
return true;
|
||||
|
||||
if (isVector) {
|
||||
if (Size == 0)
|
||||
return Error(SizeLoc, "zero element vector is illegal");
|
||||
if ((unsigned)Size != Size)
|
||||
return Error(SizeLoc, "size too large for vector");
|
||||
if (!EltTy->isFloatingPoint() && !EltTy->isInteger())
|
||||
|
Loading…
x
Reference in New Issue
Block a user