diff --git a/polly/lib/Exchange/JSONExporter.cpp b/polly/lib/Exchange/JSONExporter.cpp index 7e7728003e05..423768bdeed4 100644 --- a/polly/lib/Exchange/JSONExporter.cpp +++ b/polly/lib/Exchange/JSONExporter.cpp @@ -173,7 +173,7 @@ static json::Value getJSON(Scop &S) { } root["statements"] = std::move(Statements); - return root; + return json::Value(std::move(root)); } static void exportScop(Scop &S) {