Stop resetting SanitizeAddress in TargetMachine::resetTargetOptions. NFC.
[oota-llvm.git] / lib / Target / TargetMachine.cpp
index 2a1beda49fd1d62d1033582993f95391f11407b0..50396729e0e3341dea669a4be442508b567bdeb9 100644 (file)
@@ -72,8 +72,6 @@ void TargetMachine::resetTargetOptions(const Function &F) const {
   RESET_OPTION(NoInfsFPMath, "no-infs-fp-math");
   RESET_OPTION(NoNaNsFPMath, "no-nans-fp-math");
   RESET_OPTION(DisableTailCalls, "disable-tail-calls");
-
-  Options.MCOptions.SanitizeAddress = F.hasFnAttribute(Attribute::SanitizeAddress);
 }
 
 /// getRelocationModel - Returns the code generation relocation model. The