diff options
| author | Duncan Sands <baldrick@free.fr> | 2010-02-16 14:50:09 +0000 |
|---|---|---|
| committer | Duncan Sands <baldrick@free.fr> | 2010-02-16 14:50:09 +0000 |
| commit | 1e6932c4b9c29e091a49231272a790a4102fa4aa (patch) | |
| tree | aa7ba3ba385313b3bab11086a15dbb6081cf05d2 /lib/Linker | |
| parent | 10343d91c52ddbfd7572032a95724f0c1ba10c7b (diff) | |
| download | external_llvm-1e6932c4b9c29e091a49231272a790a4102fa4aa.zip external_llvm-1e6932c4b9c29e091a49231272a790a4102fa4aa.tar.gz external_llvm-1e6932c4b9c29e091a49231272a790a4102fa4aa.tar.bz2 | |
Introduce isOpaqueTy and use it rather than isa<OpaqueType>. Also, move some
methods to try to have the type predicates be more logically positioned.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@96349 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Linker')
| -rw-r--r-- | lib/Linker/LinkModules.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Linker/LinkModules.cpp b/lib/Linker/LinkModules.cpp index 7f441b0..8487c83 100644 --- a/lib/Linker/LinkModules.cpp +++ b/lib/Linker/LinkModules.cpp @@ -159,7 +159,7 @@ static bool RecursiveResolveTypesI(const Type *DstTy, const Type *SrcTy, if (DstTy == SrcTy) return false; // If already equal, noop // If we found our opaque type, resolve it now! - if (isa<OpaqueType>(DstTy) || isa<OpaqueType>(SrcTy)) + if (DstTy->isOpaqueTy() || SrcTy->isOpaqueTy()) return ResolveTypes(DstTy, SrcTy); // Two types cannot be resolved together if they are of different primitive |
