parent
ed2776a85c
commit
27032de34b
|
@ -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);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue