]> granicus.if.org Git - clang/commit
Replace two QualType::getTypePtrOrNull() calls with
authorDouglas Gregor <dgregor@apple.com>
Fri, 10 Dec 2010 17:19:40 +0000 (17:19 +0000)
committerDouglas Gregor <dgregor@apple.com>
Fri, 10 Dec 2010 17:19:40 +0000 (17:19 +0000)
commit4472fc641ea3069463798fb56a04043c28ea2910
treed08ec113b22024079d7ad444a0102c2cae855b15
parent9f6f6a107287bd81aedab8b578216535b0b51d0f
Replace two QualType::getTypePtrOrNull() calls with
QualType::getTypePtr(). It turns out that
cast_or_null/dyn_cast_or_null don't actually use simplify_type, so
they're guaranteed to operator on non-NULL QualType or CanQualType
objects.

Good for a 0.6% win on 403.gcc's combine.c with -emit-llvm.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@121495 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/AST/CanonicalType.h
include/clang/AST/Type.h