GICHelper: Correctly assign return value

... to preserve reference counting logic.

In practice the missing assignment would not have caused any issues. We still
fix it as the code is wrong and it also causes noise in the clang static
analysis runs.

llvm-svn: 280946
This commit is contained in:
Tobias Grosser 2016-09-08 14:34:54 +00:00
parent 8651c04ce0
commit a2d80ba58a
1 changed files with 1 additions and 1 deletions

View File

@ -99,7 +99,7 @@ static inline std::string stringFromIslObjInternal(__isl_keep ISLTy *isl_obj,
return "null";
isl_ctx *ctx = ctx_getter_fn(isl_obj);
isl_printer *p = isl_printer_to_str(ctx);
printer_fn(p, isl_obj);
p = printer_fn(p, isl_obj);
char *char_str = isl_printer_get_str(p);
std::string string;
if (char_str)