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 | b2d22f6dce54560f0c3057ea29138ed87ba94158 (patch) | |
tree | 7c80711bc308ed1ffc7c005308429640043e4027 | |
parent | fad0d4f1d48152c86c0456a2a36611353ecd2d06 (diff) | |
download | external_llvm-b2d22f6dce54560f0c3057ea29138ed87ba94158.zip external_llvm-b2d22f6dce54560f0c3057ea29138ed87ba94158.tar.gz external_llvm-b2d22f6dce54560f0c3057ea29138ed87ba94158.tar.bz2 |
Update to use correct type cast
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@536 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/AsmParser/llvmAsmParser.y | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/AsmParser/llvmAsmParser.y b/lib/AsmParser/llvmAsmParser.y index 0568b33..a6ee7be 100644 --- a/lib/AsmParser/llvmAsmParser.y +++ b/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) |