projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
097ea83
)
reject some invalid IR. We already assert and reject this from the
author
Chris Lattner
<sabre@nondot.org>
Mon, 18 Jan 2010 19:50:32 +0000
(19:50 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Mon, 18 Jan 2010 19:50:32 +0000
(19:50 +0000)
.ll parser, but PR6070 wants it in the verifier too.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@93756
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/VMCore/Verifier.cpp
patch
|
blob
|
history
diff --git
a/lib/VMCore/Verifier.cpp
b/lib/VMCore/Verifier.cpp
index ec475e4729794b8287406a8badb19a7a7e8a1940..91517ea7f6ad422ed2624e480ea161681749be4c 100644
(file)
--- a/
lib/VMCore/Verifier.cpp
+++ b/
lib/VMCore/Verifier.cpp
@@
-1301,6
+1301,8
@@
void Verifier::visitAllocaInst(AllocaInst &AI) {
&AI);
Assert1(PTy->getElementType()->isSized(), "Cannot allocate unsized type",
&AI);
+ Assert1(AI.getArraySize()->getType()->isInteger(32),
+ "Alloca array size must be i32", &AI);
visitInstruction(AI);
}