diff --git a/lib/Target/X86/X86Subtarget.h b/lib/Target/X86/X86Subtarget.h index d66d8595059..a8e97e61032 100644 --- a/lib/Target/X86/X86Subtarget.h +++ b/lib/Target/X86/X86Subtarget.h @@ -344,8 +344,7 @@ public: bool isTargetNaCl32() const { return isTargetNaCl() && !is64Bit(); } bool isTargetNaCl64() const { return isTargetNaCl() && is64Bit(); } bool isTargetWindows() const { - return TargetTriple.isOSWindows() && - !TargetTriple.isWindowsGNUEnvironment(); + return TargetTriple.isKnownWindowsMSVCEnvironment(); } bool isTargetMingw() const { return TargetTriple.isWindowsGNUEnvironment(); } bool isTargetCygwin() const {