diff options
| author | Ted Kremenek <kremenek@apple.com> | 2009-07-17 01:20:38 +0000 |
|---|---|---|
| committer | Ted Kremenek <kremenek@apple.com> | 2009-07-17 01:20:38 +0000 |
| commit | 5cad1f74469d4d8b4fc51fe53a7837778aeb6107 (patch) | |
| tree | 103a67b248c742d63cca1dbafa373aa7b4934362 /lib/CodeGen/CGExprConstant.cpp | |
| parent | ada45428b6855bbffb9abd65fa77039a5259f6c2 (diff) | |
| download | clang-5cad1f74469d4d8b4fc51fe53a7837778aeb6107.tar.gz clang-5cad1f74469d4d8b4fc51fe53a7837778aeb6107.tar.bz2 clang-5cad1f74469d4d8b4fc51fe53a7837778aeb6107.tar.xz | |
Replaced Type::getAsLValueReferenceType(), Type::getAsRValueReferenceType(), Type::getAsMemberPointerType(), Type::getAsTagType(), and Type::getAsRecordType() with their Type::getAs<XXX> equivalents.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@76139 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGExprConstant.cpp')
| -rw-r--r-- | lib/CodeGen/CGExprConstant.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/CodeGen/CGExprConstant.cpp b/lib/CodeGen/CGExprConstant.cpp index 4f1f58fefd..dea207cc72 100644 --- a/lib/CodeGen/CGExprConstant.cpp +++ b/lib/CodeGen/CGExprConstant.cpp @@ -188,7 +188,7 @@ public: llvm::Constant *EmitStructInitialization(InitListExpr *ILE) { const llvm::StructType *SType = cast<llvm::StructType>(ConvertType(ILE->getType())); - RecordDecl *RD = ILE->getType()->getAsRecordType()->getDecl(); + RecordDecl *RD = ILE->getType()->getAs<RecordType>()->getDecl(); std::vector<llvm::Constant*> Elts; // Initialize the whole structure to zero. @@ -264,7 +264,7 @@ public: #ifndef NDEBUG // Make sure that it's really an empty and not a failure of // semantic analysis. - RecordDecl *RD = ILE->getType()->getAsRecordType()->getDecl(); + RecordDecl *RD = ILE->getType()->getAs<RecordType>()->getDecl(); for (RecordDecl::field_iterator Field = RD->field_begin(), FieldEnd = RD->field_end(); Field != FieldEnd; ++Field) |
