[XLA] Remove constant cast in literal util.
[XLA] Remove constant cast in literal util.

It's not portable to modify an underlying char array of a c++ string object: (https://stackoverflow.com/questions/5729203/modifying-underlying-char-array-of-a-c-string-object)

RELNOTES: n/a
PiperOrigin-RevId: 193740595

aam-at/tensorflow,meteorcloudy/tensorflow,ghchinoy/tensorflow,jendap/tensorflow,tensorflow/tensorflow,alshedivat/tensorflow,ageron/tensorflow,Bismarrck/tensorflow,brchiu/tensorflow,jalexvig/tensorflow,gunan/tensorflow,alsrgv/tensorflow,paolodedios/tensorflow,gojira/tensorflow,ghchinoy/tensorflow,annarev/tensorflow,frreiss/tensorflow-fred,aselle/tensorflow,ageron/tensorflow,Bismarrck/tensorflow,lukeiwanski/tensorflow,dancingdan/tensorflow,jalexvig/tensorflow,yongtang/tensorflow,cxxgtxy/tensorflow,karllessard/tensorflow,lukeiwanski/tensorflow,jart/tensorflow,alsrgv/tensorflow,ghchinoy/tensorflow,aldian/tensorflow,brchiu/tensorflow,xodus7/tensorflow,jendap/tensorflow,apark263/tensorflow,ZhangXinNan/tensorflow,tensorflow/tensorflow,brchiu/tensorflow,brchiu/tensorflow,AnishShah/tensorflow,freedomtan/tensorflow,jart/tensorflow,adit-chandra/tensorflow,xodus7/tensorflow,yongtang/tensorflow,karllessard/tensorflow,renyi533/tensorflow,kobejean/tensorflow,dongjoon-hyun/tensorflow,arborh/tensorflow,petewarden/tensorflow,arborh/tensorflow,snnn/tensorflow,theflofly/tensorflow,asimshankar/tensorflow,frreiss/tensorflow-fred,xzturn/tensorflow,kobejean/tensorflow,petewarden/tensorflow,seanli9jan/tensorflow,snnn/tensorflow,ageron/tensorflow,xzturn/tensorflow,xzturn/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,annarev/tensorflow,gautam1858/tensorflow,kevin-coder/tensorflow-fork,chemelnucfin/tensorflow,Intel-tensorflow/tensorflow,manipopopo/tensorflow,snnn/tensorflow,dendisuhubdy/tensorflow,asimshankar/tensorflow,theflofly/tensorflow,theflofly/tensorflow,cxxgtxy/tensorflow,ppwwyyxx/tensorflow,paolodedios/tensorflow,jbedorf/tensorflow,chemelnucfin/tensorflow,AnishShah/tensorflow,Intel-tensorflow/tensorflow,jendap/tensorflow,Intel-tensorflow/tensorflow,meteorcloudy/tensorflow,alsrgv/tensorflow,sarvex/tensorflow,ghchinoy/tensorflow,arborh/tensorflow,freedomtan/tensorflow,dendisuhubdy/tensorflow,Intel-tensorflow/tensorflow,paolodedios/tensorflow,manipopopo/tensorflow,dancingdan/tensorflow,tensorflow/tensorflow-pywrap_saved_model,renyi533/tensorflow,yanchen036/tensorflow,gunan/tensorflow,manipopopo/tensorflow,apark263/tensorflow,karllessard/tensorflow,sarvex/tensorflow,manipopopo/tensorflow,sarvex/tensorflow,alshedivat/tensorflow,dendisuhubdy/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,frreiss/tensorflow-fred,petewarden/tensorflow,kevin-coder/tensorflow-fork,petewarden/tensorflow,DavidNorman/tensorflow,paolodedios/tensorflow,brchiu/tensorflow,dancingdan/tensorflow,xodus7/tensorflow,nburn42/tensorflow,chemelnucfin/tensorflow,ZhangXinNan/tensorflow,AnishShah/tensorflow,jart/tensorflow,sarvex/tensorflow,brchiu/tensorflow,Intel-Corporation/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,arborh/tensorflow,petewarden/tensorflow,hehongliang/tensorflow,alsrgv/tensorflow,asimshankar/tensorflow,xodus7/tensorflow,AnishShah/tensorflow,frreiss/tensorflow-fred,cxxgtxy/tensorflow,gojira/tensorflow,asimshankar/tensorflow,jart/tensorflow,aam-at/tensorflow,dongjoon-hyun/tensorflow,paolodedios/tensorflow,annarev/tensorflow,adit-chandra/tensorflow,benoitsteiner/tensorflow-xsmm,manipopopo/tensorflow,renyi533/tensorflow,tensorflow/tensorflow-pywrap_saved_model,DavidNorman/tensorflow,gautam1858/tensorflow,alsrgv/tensorflow,dendisuhubdy/tensorflow,chemelnucfin/tensorflow,dendisuhubdy/tensorflow,dancingdan/tensorflow,arborh/tensorflow,kobejean/tensorflow,yongtang/tensorflow,sarvex/tensorflow,seanli9jan/tensorflow,lukeiwanski/tensorflow,gunan/tensorflow,ghchinoy/tensorflow,Bismarrck/tensorflow,davidzchen/tensorflow,dendisuhubdy/tensorflow,ZhangXinNan/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,gautam1858/tensorflow,jendap/tensorflow,freedomtan/tensorflow,kevin-coder/tensorflow-fork,dendisuhubdy/tensorflow,DavidNorman/tensorflow,chemelnucfin/tensorflow,theflofly/tensorflow,paolodedios/tensorflow,annarev/tensorflow,xodus7/tensorflow,benoitsteiner/tensorflow-xsmm,kobejean/tensorflow,aam-at/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,annarev/tensorflow,chemelnucfin/tensorflow,ageron/tensorflow,ageron/tensorflow,aldian/tensorflow,nburn42/tensorflow,jhseu/tensorflow,jhseu/tensorflow,Intel-tensorflow/tensorflow,davidzchen/tensorflow,gunan/tensorflow,frreiss/tensorflow-fred,drpngx/tensorflow,seanli9jan/tensorflow,ZhangXinNan/tensorflow,caisq/tensorflow,tensorflow/tensorflow-pywrap_saved_model,hfp/tensorflow-xsmm,kevin-coder/tensorflow-fork,tensorflow/tensorflow,dancingdan/tensorflow,gautam1858/tensorflow,meteorcloudy/tensorflow,girving/tensorflow,davidzchen/tensorflow,brchiu/tensorflow,petewarden/tensorflow,girving/tensorflow,xodus7/tensorflow,yanchen036/tensorflow,theflofly/tensorflow,adit-chandra/tensorflow,Intel-Corporation/tensorflow,jbedorf/tensorflow,jalexvig/tensorflow,DavidNorman/tensorflow,jhseu/tensorflow,adit-chandra/tensorflow,dongjoon-hyun/tensorflow,kevin-coder/tensorflow-fork,meteorcloudy/tensorflow,alsrgv/tensorflow,alshedivat/tensorflow,frreiss/tensorflow-fred,sarvex/tensorflow,DavidNorman/tensorflow,freedomtan/tensorflow,cxxgtxy/tensorflow,tensorflow/tensorflow-pywrap_saved_model,renyi533/tensorflow,karllessard/tensorflow,nburn42/tensorflow,drpngx/tensorflow,cxxgtxy/tensorflow,nburn42/tensorflow,gunan/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,jhseu/tensorflow,hehongliang/tensorflow,jalexvig/tensorflow,AnishShah/tensorflow,yanchen036/tensorflow,ghchinoy/tensorflow,annarev/tensorflow,AnishShah/tensorflow,girving/tensorflow,ZhangXinNan/tensorflow,caisq/tensorflow,frreiss/tensorflow-fred,theflofly/tensorflow,ZhangXinNan/tensorflow,apark263/tensorflow,aselle/tensorflow,aselle/tensorflow,freedomtan/tensorflow,jalexvig/tensorflow,jendap/tensorflow,aam-at/tensorflow,yongtang/tensorflow,jendap/tensorflow,xodus7/tensorflow,apark263/tensorflow,aam-at/tensorflow,benoitsteiner/tensorflow-xsmm,chemelnucfin/tensorflow,freedomtan/tensorflow,jbedorf/tensorflow,petewarden/tensorflow,kobejean/tensorflow,ageron/tensorflow,asimshankar/tensorflow,Bismarrck/tensorflow,seanli9jan/tensorflow,asimshankar/tensorflow,xzturn/tensorflow,yanchen036/tensorflow,freedomtan/tensorflow,petewarden/tensorflow,dancingdan/tensorflow,jendap/tensorflow,apark263/tensorflow,theflofly/tensorflow,nburn42/tensorflow,jart/tensorflow,seanli9jan/tensorflow,tensorflow/tensorflow-pywrap_saved_model,gautam1858/tensorflow,lukeiwanski/tensorflow,frreiss/tensorflow-fred,yanchen036/tensorflow,tensorflow/tensorflow-pywrap_saved_model,alsrgv/tensorflow,benoitsteiner/tensorflow-xsmm,ppwwyyxx/tensorflow,theflofly/tensorflow,Bismarrck/tensorflow,renyi533/tensorflow,adit-chandra/tensorflow,hfp/tensorflow-xsmm,ghchinoy/tensorflow,Bismarrck/tensorflow,Intel-Corporation/tensorflow,jhseu/tensorflow,renyi533/tensorflow,DavidNorman/tensorflow,apark263/tensorflow,lukeiwanski/tensorflow,kobejean/tensorflow,drpngx/tensorflow,gunan/tensorflow,karllessard/tensorflow,lukeiwanski/tensorflow,jhseu/tensorflow,kevin-coder/tensorflow-fork,jhseu/tensorflow,AnishShah/tensorflow,renyi533/tensorflow,gautam1858/tensorflow,meteorcloudy/tensorflow,xzturn/tensorflow,asimshankar/tensorflow,nburn42/tensorflow,dancingdan/tensorflow,xzturn/tensorflow,drpngx/tensorflow,cxxgtxy/tensorflow,alshedivat/tensorflow,hehongliang/tensorflow,apark263/tensorflow,dongjoon-hyun/tensorflow,kobejean/tensorflow,seanli9jan/tensorflow,Bismarrck/tensorflow,annarev/tensorflow,renyi533/tensorflow,yanchen036/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,tensorflow/tensorflow-experimental_link_static_libraries_once,gojira/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,annarev/tensorflow,ppwwyyxx/tensorflow,ppwwyyxx/tensorflow,aldian/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,sarvex/tensorflow,Intel-tensorflow/tensorflow,drpngx/tensorflow,adit-chandra/tensorflow,sarvex/tensorflow,arborh/tensorflow,brchiu/tensorflow,adit-chandra/tensorflow,gunan/tensorflow,gojira/tensorflow,jbedorf/tensorflow,ghchinoy/tensorflow,xzturn/tensorflow,jendap/tensorflow,ppwwyyxx/tensorflow,tensorflow/tensorflow,jendap/tensorflow,asimshankar/tensorflow,jbedorf/tensorflow,aldian/tensorflow,petewarden/tensorflow,karllessard/tensorflow,drpngx/tensorflow,tensorflow/tensorflow,karllessard/tensorflow,dendisuhubdy/tensorflow,aselle/tensorflow,adit-chandra/tensorflow,jbedorf/tensorflow,ppwwyyxx/tensorflow,drpngx/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,jbedorf/tensorflow,davidzchen/tensorflow,caisq/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,ageron/tensorflow,annarev/tensorflow,petewarden/tensorflow,girving/tensorflow,alshedivat/tensorflow,jart/tensorflow,aldian/tensorflow,snnn/tensorflow,karllessard/tensorflow,caisq/tensorflow,davidzchen/tensorflow,theflofly/tensorflow,paolodedios/tensorflow,jalexvig/tensorflow,drpngx/tensorflow,ZhangXinNan/tensorflow,jhseu/tensorflow,seanli9jan/tensorflow,yongtang/tensorflow,hehongliang/tensorflow,nburn42/tensorflow,hfp/tensorflow-xsmm,gunan/tensorflow,davidzchen/tensorflow,renyi533/tensorflow,jbedorf/tensorflow,renyi533/tensorflow,dongjoon-hyun/tensorflow,asimshankar/tensorflow,hehongliang/tensorflow,lukeiwanski/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,karllessard/tensorflow,xzturn/tensorflow,Bismarrck/tensorflow,cxxgtxy/tensorflow,dancingdan/tensorflow,kobejean/tensorflow,ZhangXinNan/tensorflow,tensorflow/tensorflow,freedomtan/tensorflow,asimshankar/tensorflow,ZhangXinNan/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,AnishShah/tensorflow,davidzchen/tensorflow,alshedivat/tensorflow,girving/tensorflow,gojira/tensorflow,ghchinoy/tensorflow,kevin-coder/tensorflow-fork,apark263/tensorflow,caisq/tensorflow,snnn/tensorflow,DavidNorman/tensorflow,gojira/tensorflow,jhseu/tensorflow,aselle/tensorflow,girving/tensorflow,arborh/tensorflow,dongjoon-hyun/tensorflow,kevin-coder/tensorflow-fork,kevin-coder/tensorflow-fork,Intel-Corporation/tensorflow,manipopopo/tensorflow,dongjoon-hyun/tensorflow,frreiss/tensorflow-fred,Intel-tensorflow/tensorflow,manipopopo/tensorflow,freedomtan/tensorflow,benoitsteiner/tensorflow-xsmm,Intel-tensorflow/tensorflow,ageron/tensorflow,jart/tensorflow,manipopopo/tensorflow,AnishShah/tensorflow,gunan/tensorflow,DavidNorman/tensorflow,caisq/tensorflow,alshedivat/tensorflow,arborh/tensorflow,Intel-Corporation/tensorflow,caisq/tensorflow,seanli9jan/tensorflow,tensorflow/tensorflow-pywrap_saved_model,frreiss/tensorflow-fred,tensorflow/tensorflow-pywrap_saved_model,benoitsteiner/tensorflow-xsmm,adit-chandra/tensorflow,hfp/tensorflow-xsmm,chemelnucfin/tensorflow,Intel-tensorflow/tensorflow,aselle/tensorflow,alsrgv/tensorflow,meteorcloudy/tensorflow,ppwwyyxx/tensorflow,yanchen036/tensorflow,jhseu/tensorflow,theflofly/tensorflow,DavidNorman/tensorflow,DavidNorman/tensorflow,yongtang/tensorflow,davidzchen/tensorflow,xzturn/tensorflow,dancingdan/tensorflow,alshedivat/tensorflow,annarev/tensorflow,frreiss/tensorflow-fred,yanchen036/tensorflow,hfp/tensorflow-xsmm,jendap/tensorflow,brchiu/tensorflow,aselle/tensorflow,ageron/tensorflow,manipopopo/tensorflow,dongjoon-hyun/tensorflow,snnn/tensorflow,apark263/tensorflow,freedomtan/tensorflow,yongtang/tensorflow,petewarden/tensorflow,gautam1858/tensorflow,ZhangXinNan/tensorflow,arborh/tensorflow,paolodedios/tensorflow,adit-chandra/tensorflow,jhseu/tensorflow,tensorflow/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,xodus7/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,davidzchen/tensorflow,girving/tensorflow,snnn/tensorflow,nburn42/tensorflow,xodus7/tensorflow,jbedorf/tensorflow,ZhangXinNan/tensorflow,yongtang/tensorflow,alsrgv/tensorflow,yongtang/tensorflow,dendisuhubdy/tensorflow,xodus7/tensorflow,asimshankar/tensorflow,gunan/tensorflow,jalexvig/tensorflow,ageron/tensorflow,alsrgv/tensorflow,karllessard/tensorflow,meteorcloudy/tensorflow,cxxgtxy/tensorflow,hfp/tensorflow-xsmm,freedomtan/tensorflow,annarev/tensorflow,tensorflow/tensorflow,aam-at/tensorflow,caisq/tensorflow,aldian/tensorflow,aselle/tensorflow,nburn42/tensorflow,hfp/tensorflow-xsmm,jalexvig/tensorflow,meteorcloudy/tensorflow,gojira/tensorflow,dongjoon-hyun/tensorflow,drpngx/tensorflow,xzturn/tensorflow,chemelnucfin/tensorflow,manipopopo/tensorflow,aam-at/tensorflow,xzturn/tensorflow,aam-at/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,ppwwyyxx/tensorflow,meteorcloudy/tensorflow,Intel-tensorflow/tensorflow,snnn/tensorflow,chemelnucfin/tensorflow,gautam1858/tensorflow,adit-chandra/tensorflow,seanli9jan/tensorflow,Bismarrck/tensorflow,seanli9jan/tensorflow,jhseu/tensorflow,aam-at/tensorflow,jart/tensorflow,snnn/tensorflow,theflofly/tensorflow,ghchinoy/tensorflow,paolodedios/tensorflow,lukeiwanski/tensorflow,jalexvig/tensorflow,manipopopo/tensorflow,brchiu/tensorflow,jalexvig/tensorflow,yongtang/tensorflow,nburn42/tensorflow,AnishShah/tensorflow,kevin-coder/tensorflow-fork,benoitsteiner/tensorflow-xsmm,chemelnucfin/tensorflow,gojira/tensorflow,jbedorf/tensorflow,tensorflow/tensorflow,ageron/tensorflow,seanli9jan/tensorflow,caisq/tensorflow,AnishShah/tensorflow,davidzchen/tensorflow,girving/tensorflow,frreiss/tensorflow-fred,gojira/tensorflow,dendisuhubdy/tensorflow,ppwwyyxx/tensorflow,lukeiwanski/tensorflow,hfp/tensorflow-xsmm,aam-at/tensorflow,ghchinoy/tensorflow,arborh/tensorflow,alshedivat/tensorflow,tensorflow/tensorflow-pywrap_saved_model,hfp/tensorflow-xsmm,jbedorf/tensorflow,alshedivat/tensorflow,ppwwyyxx/tensorflow,paolodedios/tensorflow,gautam1858/tensorflow,ppwwyyxx/tensorflow,gunan/tensorflow,gautam1858/tensorflow,renyi533/tensorflow,davidzchen/tensorflow,freedomtan/tensorflow,aselle/tensorflow,karllessard/tensorflow,girving/tensorflow,snnn/tensorflow,xodus7/tensorflow,Intel-tensorflow/tensorflow,ageron/tensorflow,dongjoon-hyun/tensorflow,gojira/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,benoitsteiner/tensorflow-xsmm,aldian/tensorflow,gojira/tensorflow,girving/tensorflow,aam-at/tensorflow,theflofly/tensorflow,gautam1858/tensorflow,ppwwyyxx/tensorflow,drpngx/tensorflow,petewarden/tensorflow,jart/tensorflow,kevin-coder/tensorflow-fork,hfp/tensorflow-xsmm,tensorflow/tensorflow-pywrap_tf_optimizer,hfp/tensorflow-xsmm,brchiu/tensorflow,ghchinoy/tensorflow,tensorflow/tensorflow-pywrap_saved_model,alsrgv/tensorflow,DavidNorman/tensorflow,yongtang/tensorflow,alsrgv/tensorflow,arborh/tensorflow,xzturn/tensorflow,tensorflow/tensorflow,Intel-Corporation/tensorflow,gautam1858/tensorflow,meteorcloudy/tensorflow,aselle/tensorflow,jbedorf/tensorflow,aam-at/tensorflow,aldian/tensorflow,davidzchen/tensorflow,girving/tensorflow,Bismarrck/tensorflow,lukeiwanski/tensorflow,nburn42/tensorflow,dongjoon-hyun/tensorflow,dancingdan/tensorflow,aselle/tensorflow,Intel-Corporation/tensorflow,alshedivat/tensorflow,hehongliang/tensorflow,tensorflow/tensorflow-pywrap_saved_model,gunan/tensorflow,tensorflow/tensorflow,apark263/tensorflow,dancingdan/tensorflow,renyi533/tensorflow,jalexvig/tensorflow,adit-chandra/tensorflow,benoitsteiner/tensorflow-xsmm,tensorflow/tensorflow-pywrap_tf_optimizer,DavidNorman/tensorflow,snnn/tensorflow,Intel-Corporation/tensorflow,jendap/tensorflow,benoitsteiner/tensorflow-xsmm,jart/tensorflow,Bismarrck/tensorflow,paolodedios/tensorflow,chemelnucfin/tensorflow,kobejean/tensorflow,kobejean/tensorflow,kobejean/tensorflow,benoitsteiner/tensorflow-xsmm,apark263/tensorflow,hehongliang/tensorflow,arborh/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,caisq/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once