diff options
| author | Chris Lattner <sabre@nondot.org> | 2001-09-10 20:08:08 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2001-09-10 20:08:08 +0000 |
| commit | 8ad45e8101150ad115b27b7294c6df6920b70a8d (patch) | |
| tree | d04df19c7b4ece76ab2678a4bd88c1b46317d746 | |
| parent | 706946b40aca99e08e9cca240bd7d5422ac60e5b (diff) | |
| download | bcm5719-llvm-8ad45e8101150ad115b27b7294c6df6920b70a8d.tar.gz bcm5719-llvm-8ad45e8101150ad115b27b7294c6df6920b70a8d.zip | |
Update to use correct type cast
llvm-svn: 536
| -rw-r--r-- | llvm/lib/AsmParser/llvmAsmParser.y | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/AsmParser/llvmAsmParser.y b/llvm/lib/AsmParser/llvmAsmParser.y index 0568b336ae5..a6ee7be569f 100644 --- a/llvm/lib/AsmParser/llvmAsmParser.y +++ b/llvm/lib/AsmParser/llvmAsmParser.y @@ -874,7 +874,7 @@ ConstPool : ConstPool OptAssign ConstVal { | ConstPool GLOBAL OptAssign Types { // Global declarations appear in CP if (!$4->get()->isPointerType() || (((PointerType*)$4->get())->isArrayType() && - ((PointerType*)$4->get())->isArrayType()->isUnsized())) { + ((PointerType*)$4->get())->castArrayType()->isUnsized())) { ThrowException("Type '" + $4->get()->getDescription() + "' is not a pointer to a sized type!"); } @@ -1209,7 +1209,7 @@ InstVal : BinaryOps Types ValueRef ',' ValueRef { | CALL TypesV ValueRef '(' ValueRefListE ')' { const MethodType *Ty; - if (!(Ty = (*$2)->isMethodType())) { + if (!(Ty = (*$2)->dyncastMethodType())) { // Pull out the types of all of the arguments... vector<const Type*> ParamTypes; for (list<Value*>::iterator I = $5->begin(), E = $5->end(); I != E; ++I) |

