[llvm-commits] [llvm] r47518 - /llvm/trunk/lib/AsmParser/llvmAsmParser.y
Devang Patel
dpatel at apple.com
Fri Feb 22 17:17:18 PST 2008
Author: dpatel
Date: Fri Feb 22 19:17:17 2008
New Revision: 47518
URL: http://llvm.org/viewvc/llvm-project?rev=47518&view=rev
Log:
Use isa check instead of getTypeID() check.
Modified:
llvm/trunk/lib/AsmParser/llvmAsmParser.y
Modified: llvm/trunk/lib/AsmParser/llvmAsmParser.y
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/AsmParser/llvmAsmParser.y?rev=47518&r1=47517&r2=47518&view=diff
==============================================================================
--- llvm/trunk/lib/AsmParser/llvmAsmParser.y (original)
+++ llvm/trunk/lib/AsmParser/llvmAsmParser.y Fri Feb 22 19:17:17 2008
@@ -1462,7 +1462,7 @@
: Types {
if (!UpRefs.empty())
GEN_ERROR("Invalid upreference in type: " + (*$1)->getDescription());
- if (!(*$1)->isFirstClassType() && (*$1)->getTypeID() != Type::StructTyID)
+ if (!(*$1)->isFirstClassType() && !isa<StructType>($1->get()))
GEN_ERROR("LLVM functions cannot return aggregate types");
$$ = $1;
}
More information about the llvm-commits
mailing list