We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a9e43a4 commit ba43f96Copy full SHA for ba43f96
lib/IRGen/GenDecl.cpp
@@ -6026,7 +6026,8 @@ Address IRGenFunction::createAlloca(llvm::Type *type,
6026
llvm::Constant *
6027
IRGenModule::getAddrOfGlobalString(StringRef data, CStringSectionType type,
6028
bool willBeRelativelyAddressed) {
6029
- if (TargetInfo.OutputObjectFormat != llvm::Triple::MachO)
+ if (TargetInfo.OutputObjectFormat != llvm::Triple::MachO ||
6030
+ willBeRelativelyAddressed)
6031
type = CStringSectionType::Default;
6032
StringRef sectionName;
6033
switch (type) {
0 commit comments