summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGRTTI.cpp
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2012-11-01 22:30:59 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2012-11-01 22:30:59 +0000
commit9c6890a7920909920bdb6a938b5fbc28540c9119 (patch)
treecbc8b52e1e1b4a22d6a639ef46720028fe51f5ca /clang/lib/CodeGen/CGRTTI.cpp
parent3494df490b296bb6a63cbd1d3f75952e17388f62 (diff)
downloadbcm5719-llvm-9c6890a7920909920bdb6a938b5fbc28540c9119.tar.gz
bcm5719-llvm-9c6890a7920909920bdb6a938b5fbc28540c9119.zip
Simplify: replace getContext().getLangOpts() with just getLangOpts().
llvm-svn: 167261
Diffstat (limited to 'clang/lib/CodeGen/CGRTTI.cpp')
-rw-r--r--clang/lib/CodeGen/CGRTTI.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CGRTTI.cpp b/clang/lib/CodeGen/CGRTTI.cpp
index e46423b95ae..7c83d39f8bc 100644
--- a/clang/lib/CodeGen/CGRTTI.cpp
+++ b/clang/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() &&
OpenPOWER on IntegriCloud