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 | 47c5188789bc40671504ed1fa3a44765cefba44f (patch) | |
tree | aa7ba3ba385313b3bab11086a15dbb6081cf05d2 /lib/Linker | |
parent | 1df9859c40492511b8aa4321eb76496005d3b75b (diff) | |
download | external_llvm-47c5188789bc40671504ed1fa3a44765cefba44f.zip external_llvm-47c5188789bc40671504ed1fa3a44765cefba44f.tar.gz external_llvm-47c5188789bc40671504ed1fa3a44765cefba44f.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 |