Fix an invalid Twine use spotty by abbeyj, it isn't safe to use Twine

temporaries (this is one reason I'm nervous about propagating their use beyond
particularly performance critical places).

llvm-svn: 93981
This commit is contained in:
Daniel Dunbar
2010-01-20 06:09:53 +00:00
parent d6514b1e13
commit 415763612a

View File

@@ -137,7 +137,10 @@ static void DefineFloatMacros(MacroBuilder &Builder, llvm::StringRef Prefix,
"1.79769313486231580793728971405301e+308L",
"1.18973149535723176508575932662800702e+4932L");
llvm::Twine DefPrefix = "__" + Prefix + "_";
llvm::SmallString<32> DefPrefix;
DefPrefix = "__";
DefPrefix += Prefix;
DefPrefix += "_";
Builder.defineMacro(DefPrefix + "DENORM_MIN__", DenormMin);
Builder.defineMacro(DefPrefix + "HAS_DENORM__");