aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilip Herron <philip.herron@embecosm.com>2022-07-06 21:24:02 +0100
committerPhilip Herron <philip.herron@embecosm.com>2022-07-06 21:39:38 +0100
commitd99b68560c0de90f1e3b23bdf08f9c01e190534a (patch)
tree7523f0ae6c86a35d05452e8536c399a14fcd1019
parent29d594e263f0ccbcbd2babf43ff453c5188f4f2c (diff)
downloadgcc-d99b68560c0de90f1e3b23bdf08f9c01e190534a.zip
gcc-d99b68560c0de90f1e3b23bdf08f9c01e190534a.tar.gz
gcc-d99b68560c0de90f1e3b23bdf08f9c01e190534a.tar.bz2
Fix bad ABI from string method causing all rust abi to become C abi
-rw-r--r--gcc/rust/util/rust-abi.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/rust/util/rust-abi.cc b/gcc/rust/util/rust-abi.cc
index c27e382..4739887 100644
--- a/gcc/rust/util/rust-abi.cc
+++ b/gcc/rust/util/rust-abi.cc
@@ -22,7 +22,7 @@ Rust::ABI
get_abi_from_string (const std::string &abi)
{
if (abi.compare ("rust") == 0)
- return Rust::ABI::C;
+ return Rust::ABI::RUST;
else if (abi.compare ("rust-intrinsic") == 0)
return Rust::ABI::INTRINSIC;
else if (abi.compare ("C") == 0)