projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8651c04
)
GICHelper: Correctly assign return value
author
Tobias Grosser
<tobias@grosser.es>
Thu, 8 Sep 2016 14:34:54 +0000
(14:34 +0000)
committer
Tobias Grosser
<tobias@grosser.es>
Thu, 8 Sep 2016 14:34:54 +0000
(14:34 +0000)
... 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
polly/lib/Support/GICHelper.cpp
patch
|
blob
|
history
diff --git
a/polly/lib/Support/GICHelper.cpp
b/polly/lib/Support/GICHelper.cpp
index
e3a5999
..
1903980
100644
(file)
--- a/
polly/lib/Support/GICHelper.cpp
+++ b/
polly/lib/Support/GICHelper.cpp
@@
-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
= p
rinter_fn(p, isl_obj);
char *char_str = isl_printer_get_str(p);
std::string string;
if (char_str)