summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAndreas Fried <andreas.fried@kit.edu>2017-09-01 16:25:34 +0200
committerSebastian Buchwald <Sebastian.Buchwald@kit.edu>2017-12-13 17:59:20 +0100
commit40319ec9318932682aca916f788ddc4664b25247 (patch)
treeba2b87912df33febb37336663cd6b0120b8def92
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.
-rw-r--r--ir/be/amd64/amd64_abi.c2
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: