]> granicus.if.org Git - llvm/commitdiff
[AMDGPU] Fix typo.
authorMichael Liao <michael.hliao@gmail.com>
Fri, 26 Jul 2019 17:13:59 +0000 (17:13 +0000)
committerMichael Liao <michael.hliao@gmail.com>
Fri, 26 Jul 2019 17:13:59 +0000 (17:13 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@367131 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/AMDGPU/AMDGPUCallLowering.cpp

index d0c99aeca0a62f85d60c944b13c52e64a971528e..c860d7975d8ea34aab00b69e9e5a72e566881d64 100644 (file)
@@ -308,8 +308,8 @@ bool AMDGPUCallLowering::lowerReturn(MachineIRBuilder &MIRBuilder,
 
   auto const &ST = MIRBuilder.getMF().getSubtarget<GCNSubtarget>();
 
-  unsigned ReturnOpc = ReturnOpc = IsShader ?
-    AMDGPU::SI_RETURN_TO_EPILOG : AMDGPU::S_SETPC_B64_return;
+  unsigned ReturnOpc =
+      IsShader ? AMDGPU::SI_RETURN_TO_EPILOG : AMDGPU::S_SETPC_B64_return;
 
   auto Ret = MIRBuilder.buildInstrNoInsert(ReturnOpc);
   Register ReturnAddrVReg;