summaryrefslogtreecommitdiffstats
path: root/clang/lib/AST/ASTContext.cpp
diff options
context:
space:
mode:
authorDavid Majnemer <david.majnemer@gmail.com>2015-03-13 18:26:17 +0000
committerDavid Majnemer <david.majnemer@gmail.com>2015-03-13 18:26:17 +0000
commitba3e5ecf075c1d186906c06fe4f85a560c244699 (patch)
tree44c13b5601f9c9b8472a9ff20bfcf9a34c70c86e /clang/lib/AST/ASTContext.cpp
parentbdf40a62a740c6e0b6f10543617ba768759951b6 (diff)
downloadbcm5719-llvm-ba3e5ecf075c1d186906c06fe4f85a560c244699.tar.gz
bcm5719-llvm-ba3e5ecf075c1d186906c06fe4f85a560c244699.zip
MS ABI: Implement __GetExceptionInfo for std::make_exception_ptr
std::make_exception_ptr calls std::__GetExceptionInfo in order to figure out how to properly copy the exception object. Differential Revision: http://reviews.llvm.org/D8280 llvm-svn: 232188
Diffstat (limited to 'clang/lib/AST/ASTContext.cpp')
-rw-r--r--clang/lib/AST/ASTContext.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/clang/lib/AST/ASTContext.cpp b/clang/lib/AST/ASTContext.cpp
index e92b33509f7..4be2436dc63 100644
--- a/clang/lib/AST/ASTContext.cpp
+++ b/clang/lib/AST/ASTContext.cpp
@@ -7840,6 +7840,9 @@ QualType ASTContext::GetBuiltinType(unsigned Id,
ArgTypes.push_back(Ty);
}
+ if (Id == Builtin::BI__GetExceptionInfo)
+ return QualType();
+
assert((TypeStr[0] != '.' || TypeStr[1] == 0) &&
"'.' should only occur at end of builtin type list!");
OpenPOWER on IntegriCloud