[DX] Speculative big endian fix
authorChris Bieneman <chris.bieneman@me.com>
Fri, 3 Feb 2023 01:25:28 +0000 (19:25 -0600)
committerChris Bieneman <chris.bieneman@me.com>
Fri, 3 Feb 2023 01:25:28 +0000 (19:25 -0600)
I think this will get it this time.

llvm/include/llvm/MC/DXContainerPSVInfo.h

index b630619..e170543 100644 (file)
@@ -40,7 +40,7 @@ struct PSVRuntimeInfo {
   void swapBytes(Triple::EnvironmentType Stage) {
     BaseData.swapBytes();
     BaseData.swapBytes(Stage);
-    for (auto Res : Resources)
+    for (auto &Res : Resources)
       Res.swapBytes();
   }
 };