diff options
author | Ian Lance Taylor <ian@gcc.gnu.org> | 2014-08-11 19:26:26 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@gcc.gnu.org> | 2014-08-11 19:26:26 +0000 |
commit | 17d9767f79871acc437342147837d842fa52b3de (patch) | |
tree | 8616390095dce34a20106bd27437692c9f9ce404 /gcc/go/gofrontend/runtime.cc | |
parent | b2f86285bd25e572ff37c4aac6ae35a14214dadb (diff) | |
download | gcc-17d9767f79871acc437342147837d842fa52b3de.zip gcc-17d9767f79871acc437342147837d842fa52b3de.tar.gz gcc-17d9767f79871acc437342147837d842fa52b3de.tar.bz2 |
compiler: Change return type comma-ok assignments to untyped bools.
Fixes https://code.google.com/p/go/issues/detail?id=8476. The test will be submitted once this is fixed in gc and go/types.
From-SVN: r213832
Diffstat (limited to 'gcc/go/gofrontend/runtime.cc')
-rw-r--r-- | gcc/go/gofrontend/runtime.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/go/gofrontend/runtime.cc b/gcc/go/gofrontend/runtime.cc index 3b0f1880..811c8f5 100644 --- a/gcc/go/gofrontend/runtime.cc +++ b/gcc/go/gofrontend/runtime.cc @@ -24,7 +24,7 @@ enum Runtime_function_type { // General indicator that value is not used. RFT_VOID, - // Go type bool, C type _Bool. + // Go untyped bool, C type _Bool. RFT_BOOL, // Go type *bool, C type _Bool*. RFT_BOOLPTR, @@ -93,7 +93,7 @@ runtime_function_type(Runtime_function_type bft) go_unreachable(); case RFT_BOOL: - t = Type::lookup_bool_type(); + t = Type::make_boolean_type(); break; case RFT_BOOLPTR: |