projects
/
contrib
/
beignet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2c91585
)
GBE: clear deadprintfs when current function is done.
author
Ruiling Song
<ruiling.song@intel.com>
Tue, 26 Aug 2014 07:39:11 +0000
(15:39 +0800)
committer
Zhigang Gong
<zhigang.gong@intel.com>
Wed, 27 Aug 2014 07:21:49 +0000
(15:21 +0800)
It should be cleared, to prevent invalid pointers staying there
when processing next Function.
Signed-off-by: Ruiling Song <ruiling.song@intel.com>
Reviewed-by: He Junyan <junyan.he@inbox.com>
backend/src/llvm/llvm_printf_parser.cpp
patch
|
blob
|
history
diff --git
a/backend/src/llvm/llvm_printf_parser.cpp
b/backend/src/llvm/llvm_printf_parser.cpp
index
e02f5aa
..
00e1ef8
100644
(file)
--- a/
backend/src/llvm/llvm_printf_parser.cpp
+++ b/
backend/src/llvm/llvm_printf_parser.cpp
@@
-616,6
+616,7
@@
error:
prf.first->eraseFromParent();
}
+ deadprintfs.clear();
delete builder;
return changed;