[SystemZ][z/OS] Fix return values in AutoConversion functions
authorAbhina Sreeskantharajan <Abhina.Sreeskantharajan@ibm.com>
Wed, 5 May 2021 13:41:45 +0000 (09:41 -0400)
committerAbhina Sreeskantharajan <Abhina.Sreeskantharajan@ibm.com>
Wed, 5 May 2021 13:43:14 +0000 (09:43 -0400)
commit6a12875046fd8c3e9f67482803a9f0f7b39dcfa6
tree4b977ee9be6d3c4f642e4bd155053a243bc6a2fa
parent1ee50b473168735752a2f80ae9b356cfa70a76d0
[SystemZ][z/OS] Fix return values in AutoConversion functions

My previous patch https://reviews.llvm.org/rG1527a5e4b4834e65678f9c30f786a2f4c17932bf incorrectly set int return values instead of std::error_code. This patch correctly returns and std::error_code value.

Reviewed By: fanbo-meng, Jonathan.Crowther

Differential Revision: https://reviews.llvm.org/D101904
llvm/lib/Support/AutoConvert.cpp