diff options
authorAndreas Fried <>2017-09-01 16:25:34 +0200
committerSebastian Buchwald <>2017-12-13 17:59:20 +0100
commit40319ec9318932682aca916f788ddc4664b25247 (patch)
parentf114b1f898adc884249695d1d943ab9c12ef7fb8 (diff)
Treat classes as structs in the amd64 ABI.
Technically, classes must be treated differently if they have "either a non-trivial copy constructor or a non-trivial destructor", but since there is no frontend with these features, there is no harm in treating classes and structs equally.
1 files changed, 1 insertions, 1 deletions
diff --git a/ir/be/amd64/amd64_abi.c b/ir/be/amd64/amd64_abi.c
index 3870e26..6f3324d 100644
--- a/ir/be/amd64/amd64_abi.c
+++ b/ir/be/amd64/amd64_abi.c
@@ -99,7 +99,7 @@ static ir_mode *classify_slice_for_amd64(ir_type const *const tp, unsigned min,
* check whether the class "has either a non-trivial
* copy constructor or a non-trivial destructor" (ABI
* sect. 3.2.3). */
- panic("classes not supported");
+ /* For now, we treat them as such though to get X10 to work. */
case tpo_struct:
case tpo_union: