Skip to content

Commit da9e190

Browse files
authored
PowerPC64: Fix build failure on ppc64le (#5058)
Commit b6e3298 introduced a C++ scoping issue where the `nativeTriple` variable was declared inside a case label without proper braces, causing a "jump to case label crosses initialization" error, breaking the build on ppc64le. This commit adds the missing braces and fixes the build.
1 parent 951997c commit da9e190

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

gen/target.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ llvm::Type *getRealType(const llvm::Triple &triple) {
9494
return LLType::getFP128Ty(ctx);
9595

9696
case Triple::ppc64:
97-
case Triple::ppc64le:
97+
case Triple::ppc64le: {
9898
if (triple.isMusl()) { // Musl uses double
9999
return LLType::getDoubleTy(ctx);
100100
}
@@ -118,6 +118,7 @@ llvm::Type *getRealType(const llvm::Triple &triple) {
118118
}
119119
#endif
120120
return LLType::getPPC_FP128Ty(ctx);
121+
}
121122

122123
default:
123124
// 64-bit double precision for all other targets

0 commit comments

Comments
 (0)