summaryrefslogtreecommitdiffstats
path: root/clang/lib/AST/ASTContext.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang/lib/AST/ASTContext.cpp')
-rw-r--r--clang/lib/AST/ASTContext.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/clang/lib/AST/ASTContext.cpp b/clang/lib/AST/ASTContext.cpp
index 061af1c3ac5..fff714cb6aa 100644
--- a/clang/lib/AST/ASTContext.cpp
+++ b/clang/lib/AST/ASTContext.cpp
@@ -2640,6 +2640,11 @@ void ASTContext::adjustExceptionSpec(
}
}
+bool ASTContext::isParamDestroyedInCallee(QualType T) const {
+ return getTargetInfo().getCXXABI().areArgsDestroyedLeftToRightInCallee() ||
+ T.hasTrivialABIOverride();
+}
+
/// getComplexType - Return the uniqued reference to the type for a complex
/// number with the specified element type.
QualType ASTContext::getComplexType(QualType T) const {
OpenPOWER on IntegriCloud