[llvm-commits] [llvm-gcc-4.2] r96353 - /llvm-gcc-4.2/trunk/gcc/llvm-types.cpp
Duncan Sands
baldrick at free.fr
Tue Feb 16 08:23:36 PST 2010
Author: baldrick
Date: Tue Feb 16 10:23:36 2010
New Revision: 96353
URL: http://llvm.org/viewvc/llvm-project?rev=96353&view=rev
Log:
Use isOpaqueTy rather than isa<OpaqueType>.
Modified:
llvm-gcc-4.2/trunk/gcc/llvm-types.cpp
Modified: llvm-gcc-4.2/trunk/gcc/llvm-types.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/llvm-types.cpp?rev=96353&r1=96352&r2=96353&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/llvm-types.cpp (original)
+++ llvm-gcc-4.2/trunk/gcc/llvm-types.cpp Tue Feb 16 10:23:36 2010
@@ -772,7 +772,7 @@
// of the vector. Remove this entry from the PointersToReresolve list and
// get the pointee type. Note that this order is important in case the
// pointee type uses this pointer.
- assert(isa<OpaqueType>(Ty->getElementType()) && "Not a deferred ref!");
+ assert(Ty->getElementType()->isOpaqueTy() && "Not a deferred ref!");
// We are actively resolving this pointer. We want to pop this value from
// the stack, as we are no longer resolving it. However, we don't want to
@@ -1210,7 +1210,7 @@
for (; Args && TREE_VALUE(Args) != void_type_node; Args = TREE_CHAIN(Args)){
tree ArgTy = TREE_VALUE(Args);
if (!isPassedByInvisibleReference(ArgTy) &&
- isa<OpaqueType>(ConvertType(ArgTy))) {
+ ConvertType(ArgTy)->isOpaqueTy()) {
// If we are passing an opaque struct by value, we don't know how many
// arguments it will turn into. Because we can't handle this yet,
// codegen the prototype as (...).
@@ -2134,7 +2134,7 @@
if (const Type *Ty = GET_TYPE_LLVM(type)) {
// If we already compiled this type, and if it was not a forward
// definition that is now defined, use the old type.
- if (!isa<OpaqueType>(Ty) || TYPE_SIZE(type) == 0)
+ if (!Ty->isOpaqueTy() || TYPE_SIZE(type) == 0)
return Ty;
}
More information about the llvm-commits
mailing list