[llvm] eba0bcc - [DX] Speculative big endian fix

Chris Bieneman via llvm-commits llvm-commits at lists.llvm.org
Thu Feb 2 17:27:13 PST 2023


Author: Chris Bieneman
Date: 2023-02-02T19:25:28-06:00
New Revision: eba0bccf5af324b18d05a5ed51c320979ea83147

URL: https://github.com/llvm/llvm-project/commit/eba0bccf5af324b18d05a5ed51c320979ea83147
DIFF: https://github.com/llvm/llvm-project/commit/eba0bccf5af324b18d05a5ed51c320979ea83147.diff

LOG: [DX] Speculative big endian fix

I think this will get it this time.

Added: 
    

Modified: 
    llvm/include/llvm/MC/DXContainerPSVInfo.h

Removed: 
    


################################################################################
diff  --git a/llvm/include/llvm/MC/DXContainerPSVInfo.h b/llvm/include/llvm/MC/DXContainerPSVInfo.h
index b6306191c00af..e17054365d5cf 100644
--- a/llvm/include/llvm/MC/DXContainerPSVInfo.h
+++ b/llvm/include/llvm/MC/DXContainerPSVInfo.h
@@ -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();
   }
 };


        


More information about the llvm-commits mailing list