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/VMCore/Function.cpp | |
parent | 1df9859c40492511b8aa4321eb76496005d3b75b (diff) |
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/VMCore/Function.cpp')
-rw-r--r-- | lib/VMCore/Function.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/VMCore/Function.cpp b/lib/VMCore/Function.cpp index 5af55102a6..dbc283e49a 100644 --- a/lib/VMCore/Function.cpp +++ b/lib/VMCore/Function.cpp @@ -155,7 +155,7 @@ Function::Function(const FunctionType *Ty, LinkageTypes Linkage, : GlobalValue(PointerType::getUnqual(Ty), Value::FunctionVal, 0, 0, Linkage, name) { assert(FunctionType::isValidReturnType(getReturnType()) && - !isa<OpaqueType>(getReturnType()) && "invalid return type"); + !getReturnType()->isOpaqueTy() && "invalid return type"); SymTab = new ValueSymbolTable(); // If the function has arguments, mark them as lazily built. |