summaryrefslogtreecommitdiffstatshomepage
path: root/3rdparty/bgfx/3rdparty/spirv-tools/test/opt/graphics_robust_access_test.cpp
diff options
context:
space:
mode:
Diffstat (limited to '3rdparty/bgfx/3rdparty/spirv-tools/test/opt/graphics_robust_access_test.cpp')
-rw-r--r--3rdparty/bgfx/3rdparty/spirv-tools/test/opt/graphics_robust_access_test.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/3rdparty/bgfx/3rdparty/spirv-tools/test/opt/graphics_robust_access_test.cpp b/3rdparty/bgfx/3rdparty/spirv-tools/test/opt/graphics_robust_access_test.cpp
index 646b92c22cb..4ae412144f8 100644
--- a/3rdparty/bgfx/3rdparty/spirv-tools/test/opt/graphics_robust_access_test.cpp
+++ b/3rdparty/bgfx/3rdparty/spirv-tools/test/opt/graphics_robust_access_test.cpp
@@ -199,11 +199,11 @@ std::string ACCheck(const std::string& access_chain_inst,
const std::string& original,
const std::string& transformed) {
return "\n ; CHECK: %ac = " + access_chain_inst + " %ptr_ty %var" +
- (transformed.size() ? " " : "") + transformed +
+ (transformed.empty() ? "" : " ") + transformed +
"\n ; CHECK-NOT: " + access_chain_inst +
"\n ; CHECK-NEXT: OpReturn"
"\n %ac = " +
- access_chain_inst + " %ptr_ty %var " + (original.size() ? " " : "") +
+ access_chain_inst + " %ptr_ty %var " + (original.empty() ? "" : " ") +
original + "\n";
}
@@ -211,11 +211,11 @@ std::string ACCheckFail(const std::string& access_chain_inst,
const std::string& original,
const std::string& transformed) {
return "\n ; CHECK: %ac = " + access_chain_inst + " %ptr_ty %var" +
- (transformed.size() ? " " : "") + transformed +
+ (transformed.empty() ? "" : " ") + transformed +
"\n ; CHECK-NOT: " + access_chain_inst +
"\n ; CHECK-NOT: OpReturn"
"\n %ac = " +
- access_chain_inst + " %ptr_ty %var " + (original.size() ? " " : "") +
+ access_chain_inst + " %ptr_ty %var " + (original.empty() ? "" : " ") +
original + "\n";
}