You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[tosa][NFC] fix ArrayRef lifetime issue for indexShap (#4224)
clang report warning for object lifetime issue
indexShape is ArrayRef and makeShapeTorchCompatible will return
SmallVector. The Vector will be destroyed before using indexShap.
```bash
torch-mlir/lib/Conversion/TorchToTosa/TorchToTosa.cpp:4232:18: warning: object backing the pointer indexShape will be destroyed at the end of the full-expression [-Wdangling-assignment-gsl]
4232 | indexShape = makeShapeTorchCompatible({1});
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
0 commit comments