diff options
author | Guo Yejun <yejun.guo@intel.com> | 2014-07-25 06:00:27 +0800 |
---|---|---|
committer | Zhigang Gong <zhigang.gong@intel.com> | 2014-07-28 14:25:18 +0800 |
commit | 898923c1db57b1cb3947c0553e59c1bd7c9ac59a (patch) | |
tree | a18310e9be5ef93ba6a4bc4ebe8b699754898491 | |
parent | 14a7629b6149ad6a07dc7b9912b26eef56588813 (diff) |
delete GEPInst when it is no longer used
Signed-off-by: Guo Yejun <yejun.guo@intel.com>
Reviewed-by: Zhigang Gong <zhigang.gong@linux.intel.com>
-rw-r--r-- | backend/src/llvm/llvm_passes.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/backend/src/llvm/llvm_passes.cpp b/backend/src/llvm/llvm_passes.cpp index 30784704..b8ab844c 100644 --- a/backend/src/llvm/llvm_passes.cpp +++ b/backend/src/llvm/llvm_passes.cpp @@ -378,7 +378,7 @@ namespace gbe //replace uses of the GEP instruction with the newly calculated pointer GEPInst->replaceAllUsesWith(intToPtrInst); GEPInst->dropAllReferences(); - GEPInst->removeFromParent(); + GEPInst->eraseFromParent(); #if FORMER_VERSION //insert new pointer into parent list |