diff options
author | Eli Friedman <eli.friedman@gmail.com> | 2012-08-31 00:14:07 +0000 |
---|---|---|
committer | Eli Friedman <eli.friedman@gmail.com> | 2012-08-31 00:14:07 +0000 |
commit | 34866c7719f893c957d93f5918f760b6edebd6be (patch) | |
tree | 99993f8a0fe6978857272dddd3dfe01dd77f876c /clang/lib/Edit/RewriteObjCFoundationAPI.cpp | |
parent | 98cfa1044fdcaaa53625c16bb9a246e0b15f7653 (diff) | |
download | llvm-34866c7719f893c957d93f5918f760b6edebd6be.zip llvm-34866c7719f893c957d93f5918f760b6edebd6be.tar.gz llvm-34866c7719f893c957d93f5918f760b6edebd6be.tar.bz2 |
Change the representation of builtin functions in the AST
(__builtin_* etc.) so that it isn't possible to take their address.
Specifically, introduce a new type to represent a reference to a builtin
function, and a new cast kind to convert it to a function pointer in the
operand of a call. Fixes PR13195.
llvm-svn: 162962
Diffstat (limited to 'clang/lib/Edit/RewriteObjCFoundationAPI.cpp')
-rw-r--r-- | clang/lib/Edit/RewriteObjCFoundationAPI.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/Edit/RewriteObjCFoundationAPI.cpp b/clang/lib/Edit/RewriteObjCFoundationAPI.cpp index d15b7a7..de96fee 100644 --- a/clang/lib/Edit/RewriteObjCFoundationAPI.cpp +++ b/clang/lib/Edit/RewriteObjCFoundationAPI.cpp @@ -920,6 +920,7 @@ static bool rewriteToNumericBoxedExpression(const ObjCMessageExpr *Msg, case CK_ARCExtendBlockObject: case CK_NonAtomicToAtomic: case CK_CopyAndAutoreleaseBlockObject: + case CK_BuiltinFnToFnPtr: return false; } } |