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:
parent
8651c04ce0
commit
a2d80ba58a
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue