r251713 - CGExprConstant.cpp: Appease Modules.

Richard Smith via cfe-commits cfe-commits at lists.llvm.org
Fri Oct 30 09:44:21 PDT 2015


On Oct 30, 2015 6:39 AM, "NAKAMURA Takumi via cfe-commits" <
cfe-commits at lists.llvm.org> wrote:
>
> Author: chapuni
> Date: Fri Oct 30 11:37:27 2015
> New Revision: 251713
>
> URL: http://llvm.org/viewvc/llvm-project?rev=251713&view=rev
> Log:
> CGExprConstant.cpp: Appease Modules.

Why? Please don't work around modules bugs to make the buildbot green; the
purpose of the bot is to find those bugs.

> Modified:
>     cfe/trunk/lib/CodeGen/CGExprConstant.cpp
>
> Modified: cfe/trunk/lib/CodeGen/CGExprConstant.cpp
> URL:
http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGExprConstant.cpp?rev=251713&r1=251712&r2=251713&view=diff
>
==============================================================================
> --- cfe/trunk/lib/CodeGen/CGExprConstant.cpp (original)
> +++ cfe/trunk/lib/CodeGen/CGExprConstant.cpp Fri Oct 30 11:37:27 2015
> @@ -1038,7 +1038,7 @@ public:
>        unsigned Type = cast<PredefinedExpr>(E)->getIdentType();
>        if (CGF) {
>          LValue Res = CGF->EmitPredefinedLValue(cast<PredefinedExpr>(E));
> -        return cast<ConstantAddress>(Res.getAddress());
> +        return llvm::cast<ConstantAddress>(Res.getAddress());
>        } else if (Type == PredefinedExpr::PrettyFunction) {
>          return CGM.GetAddrOfConstantCString("top level", ".tmp");
>        }
>
>
> _______________________________________________
> cfe-commits mailing list
> cfe-commits at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20151030/f02afb34/attachment-0001.html>


More information about the cfe-commits mailing list