Shorten; no functionality change.
llvm-svn: 65145
This commit is contained in:
@@ -971,14 +971,12 @@ RValue CodeGenFunction::EmitCallExpr(const CallExpr *E) {
|
|||||||
return EmitBlockCallExpr(E);
|
return EmitBlockCallExpr(E);
|
||||||
|
|
||||||
const Decl *TargetDecl = 0;
|
const Decl *TargetDecl = 0;
|
||||||
if (const ImplicitCastExpr *IcExpr =
|
if (const ImplicitCastExpr *CE = dyn_cast<ImplicitCastExpr>(E->getCallee())) {
|
||||||
dyn_cast<ImplicitCastExpr>(E->getCallee())) {
|
if (const DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(CE->getSubExpr())) {
|
||||||
if (const DeclRefExpr *DRExpr =
|
TargetDecl = DRE->getDecl();
|
||||||
dyn_cast<DeclRefExpr>(IcExpr->getSubExpr())) {
|
if (const FunctionDecl *FD = dyn_cast<FunctionDecl>(TargetDecl))
|
||||||
TargetDecl = DRExpr->getDecl();
|
if (unsigned builtinID = FD->getBuiltinID(getContext()))
|
||||||
if (const FunctionDecl *FDecl = dyn_cast<FunctionDecl>(TargetDecl))
|
return EmitBuiltinExpr(FD, builtinID, E);
|
||||||
if (unsigned builtinID = FDecl->getBuiltinID(getContext()))
|
|
||||||
return EmitBuiltinExpr(FDecl, builtinID, E);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user