[bug] [opt] Disable putting pointers into global tmp buffer (#2888)
[bug] [opt] Disable putting pointers into global tmp buffer (#2888)

* [opt] Disable putting pointers into global tmp buffer

* Auto Format

* Make the condition more accurate

* Auto Format

Co-authored-by: Taichi Gardener <52844ac7498fba84f633481a7c3ae54491811c81@gmail.com>
yuanming-hu/taichi,yuanming-hu/taichi,yuanming-hu/taichi,yuanming-hu/taichi