summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/SemaChecking.cpp
diff options
context:
space:
mode:
authorYonghong Song <yhs@fb.com>2019-07-09 04:15:12 +0000
committerYonghong Song <yhs@fb.com>2019-07-09 04:15:12 +0000
commite085b40e9c4e5e4ebfbd0f98da17b77dec908bf7 (patch)
tree5fcb240fcf9832c300a30f323da9a7a8defffb24 /clang/lib/Sema/SemaChecking.cpp
parentf21eeafcd9cd2dbb16d763e813ff21b215b5109b (diff)
downloadbcm5719-llvm-e085b40e9c4e5e4ebfbd0f98da17b77dec908bf7.tar.gz
bcm5719-llvm-e085b40e9c4e5e4ebfbd0f98da17b77dec908bf7.zip
Revert "[BPF] Preserve debuginfo array/union/struct type/access index"
This reverts commit r365435. Forgot adding the Differential Revision link. Will add to the commit message and resubmit. llvm-svn: 365436
Diffstat (limited to 'clang/lib/Sema/SemaChecking.cpp')
-rw-r--r--clang/lib/Sema/SemaChecking.cpp14
1 files changed, 0 insertions, 14 deletions
diff --git a/clang/lib/Sema/SemaChecking.cpp b/clang/lib/Sema/SemaChecking.cpp
index 7ab0f2d312a..702a2305968 100644
--- a/clang/lib/Sema/SemaChecking.cpp
+++ b/clang/lib/Sema/SemaChecking.cpp
@@ -191,16 +191,6 @@ static bool SemaBuiltinAddressof(Sema &S, CallExpr *TheCall) {
return false;
}
-/// Check the number of arguments, and set the result type to
-/// the argument type.
-static bool SemaBuiltinPreserveAI(Sema &S, CallExpr *TheCall) {
- if (checkArgCount(S, TheCall, 1))
- return true;
-
- TheCall->setType(TheCall->getArg(0)->getType());
- return false;
-}
-
static bool SemaBuiltinOverflow(Sema &S, CallExpr *TheCall) {
if (checkArgCount(S, TheCall, 3))
return true;
@@ -1419,10 +1409,6 @@ Sema::CheckBuiltinFunctionCall(FunctionDecl *FDecl, unsigned BuiltinID,
TheCall->setType(Context.IntTy);
break;
}
- case Builtin::BI__builtin_preserve_access_index:
- if (SemaBuiltinPreserveAI(*this, TheCall))
- return ExprError();
- break;
case Builtin::BI__builtin_call_with_static_chain:
if (SemaBuiltinCallWithStaticChain(*this, TheCall))
return ExprError();
OpenPOWER on IntegriCloud