diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2012-11-01 22:30:59 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2012-11-01 22:30:59 +0000 |
commit | 7edf9e38b91917b661277601c0e448eef0eb2b56 (patch) | |
tree | cae1fa811f387c2ba417ee518422ee4efde61597 /lib/CodeGen/CGRTTI.cpp | |
parent | da082f12c2633e9b45046fdce81e8b5847b9a26b (diff) | |
download | clang-7edf9e38b91917b661277601c0e448eef0eb2b56.tar.gz clang-7edf9e38b91917b661277601c0e448eef0eb2b56.tar.bz2 clang-7edf9e38b91917b661277601c0e448eef0eb2b56.tar.xz |
Simplify: replace getContext().getLangOpts() with just getLangOpts().
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@167261 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGRTTI.cpp')
-rw-r--r-- | lib/CodeGen/CGRTTI.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/CGRTTI.cpp b/lib/CodeGen/CGRTTI.cpp index e46423b95a..7c83d39f8b 100644 --- a/lib/CodeGen/CGRTTI.cpp +++ b/lib/CodeGen/CGRTTI.cpp @@ -977,7 +977,7 @@ llvm::Constant *CodeGenModule::GetAddrOfRTTIDescriptor(QualType Ty, // Return a bogus pointer if RTTI is disabled, unless it's for EH. // FIXME: should we even be calling this method if RTTI is disabled // and it's not for EH? - if (!ForEH && !getContext().getLangOpts().RTTI) + if (!ForEH && !getLangOpts().RTTI) return llvm::Constant::getNullValue(Int8PtrTy); if (ForEH && Ty->isObjCObjectPointerType() && |