Skip to content

Commit 08430ff

Browse files
DavidSpickettjsji
authored andcommitted
Fix unannotated fall-through warning in SPIRVWriter.cpp (#2745)
By adding the missing `break`. SPIRV-LLVM-Translator/lib/SPIRV/SPIRVWriter.cpp:3718:5: warning: unannotated fall-through between switch labels [-Wimplicit-fallthrough] 3718 | default: | ^ SPIRV-LLVM-Translator/lib/SPIRV/SPIRVWriter.cpp:3718:5: note: insert 'break;' to avoid fall-through 3718 | default: | ^ | break; As the default case was just `break`, the behaviour is the same but this should prevent future mistakes here. Original commit: KhronosGroup/SPIRV-LLVM-Translator@a52ef6da720962e
1 parent 8b22761 commit 08430ff

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

llvm-spirv/lib/SPIRV/SPIRVWriter.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3713,6 +3713,7 @@ void addAnnotationDecorations(SPIRVEntry *E, DecorationsInfoVec &Decorations) {
37133713
E->addDecorate(new SPIRVDecorateCacheControlLoadINTEL(
37143714
E, CacheLevel, static_cast<LoadCacheControl>(CacheControl)));
37153715
}
3716+
break;
37163717
}
37173718

37183719
default:

0 commit comments

Comments
 (0)