From: Ruiling Song Date: Tue, 26 Aug 2014 07:39:11 +0000 (+0800) Subject: GBE: clear deadprintfs when current function is done. X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=03339b1d66afc98089407564582fbe43b7a1cd64;p=contrib%2Fbeignet.git GBE: clear deadprintfs when current function is done. It should be cleared, to prevent invalid pointers staying there when processing next Function. Signed-off-by: Ruiling Song Reviewed-by: He Junyan --- diff --git a/backend/src/llvm/llvm_printf_parser.cpp b/backend/src/llvm/llvm_printf_parser.cpp index e02f5aa..00e1ef8 100644 --- 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;