From: Joerg Sonnenberger Date: Tue, 15 Jul 2014 12:18:40 +0000 (+0000) Subject: Don't create non-temporary twines. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3c093175f313f27735601a842be9498cecd31062;p=clang Don't create non-temporary twines. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@213066 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Frontend/InitPreprocessor.cpp b/lib/Frontend/InitPreprocessor.cpp index b53fff9afc..091edd4f33 100644 --- a/lib/Frontend/InitPreprocessor.cpp +++ b/lib/Frontend/InitPreprocessor.cpp @@ -201,9 +201,8 @@ static void DefineFmt(const Twine &Prefix, TargetInfo::IntType Ty, bool IsSigned = TI.isTypeSigned(Ty); StringRef FmtModifier = TI.getTypeFormatModifier(Ty); for (const char *Fmt = IsSigned ? "di" : "ouxX"; *Fmt; ++Fmt) { - Twine Macro = Prefix + "_FMT" + Twine(*Fmt) + "__"; - Twine Value = Twine("\"") + FmtModifier + Twine(*Fmt) + "\""; - Builder.defineMacro(Macro, Value); + Builder.defineMacro(Prefix + "_FMT" + Twine(*Fmt) + "__", + Twine("\"") + FmtModifier + Twine(*Fmt) + "\""); } }