Browse Source

Fix bad condition for skipping library functions for parameter flattenning.

Tex Riddell 7 năm trước cách đây
mục cha
commit
93c6bb3054
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      lib/Transforms/Scalar/ScalarReplAggregatesHLSL.cpp

+ 1 - 1
lib/Transforms/Scalar/ScalarReplAggregatesHLSL.cpp

@@ -3976,7 +3976,7 @@ public:
         continue;
 
       // Skip library functions
-      if (&F == m_pHLModule->GetEntryFunction() ||
+      if (&F != m_pHLModule->GetEntryFunction() &&
           !m_pHLModule->IsEntryThatUsesSignatures(&F))
         continue;