[llvm-commits] [llvm] r65698 - /llvm/trunk/lib/AsmParser/LLParser.cpp
Chris Lattner
sabre at nondot.org
Sat Feb 28 10:12:42 PST 2009
Author: lattner
Date: Sat Feb 28 12:12:41 2009
New Revision: 65698
URL: http://llvm.org/viewvc/llvm-project?rev=65698&view=rev
Log:
reject 0 element vectors with:
@a = internal constant void bitcast(<0 x i8> <> to void)
^
Fixes PR3685
Modified:
llvm/trunk/lib/AsmParser/LLParser.cpp
Modified: llvm/trunk/lib/AsmParser/LLParser.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/AsmParser/LLParser.cpp?rev=65698&r1=65697&r2=65698&view=diff
==============================================================================
--- llvm/trunk/lib/AsmParser/LLParser.cpp (original)
+++ llvm/trunk/lib/AsmParser/LLParser.cpp Sat Feb 28 12:12:41 2009
@@ -1262,6 +1262,8 @@
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())
More information about the llvm-commits
mailing list