Skip to content

Commit e849d3c

Browse files
committed
Bugfix: UseOdrIndicator wrongly set to true in previous commit during
cherry pick rdar://105491939
1 parent 096db03 commit e849d3c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

llvm/include/llvm/Transforms/Instrumentation/AddressSanitizer.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ struct AddressSanitizerOptions {
3636
class AddressSanitizerPass : public PassInfoMixin<AddressSanitizerPass> {
3737
public:
3838
AddressSanitizerPass(const AddressSanitizerOptions &Options,
39-
bool UseGlobalGC = true, bool UseOdrIndicator = true,
39+
bool UseGlobalGC = true, bool UseOdrIndicator = false,
4040
AsanDtorKind DestructorKind = AsanDtorKind::Global,
4141
AsanCtorKind ConstructorKind = AsanCtorKind::Global);
4242
PreservedAnalyses run(Module &M, ModuleAnalysisManager &AM);

llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -774,7 +774,7 @@ class ModuleAddressSanitizer {
774774
public:
775775
ModuleAddressSanitizer(Module &M, bool CompileKernel = false,
776776
bool Recover = false, bool UseGlobalsGC = true,
777-
bool UseOdrIndicator = true,
777+
bool UseOdrIndicator = false,
778778
AsanDtorKind DestructorKind = AsanDtorKind::Global,
779779
AsanCtorKind ConstructorKind = AsanCtorKind::Global)
780780
: CompileKernel(ClEnableKasan.getNumOccurrences() > 0 ? ClEnableKasan

0 commit comments

Comments
 (0)