diff --git a/lib/Target/Sparc/SparcSubtarget.cpp b/lib/Target/Sparc/SparcSubtarget.cpp index 5a08cd2bc4a..9666ea9d454 100644 --- a/lib/Target/Sparc/SparcSubtarget.cpp +++ b/lib/Target/Sparc/SparcSubtarget.cpp @@ -16,6 +16,11 @@ using namespace llvm; SparcV8Subtarget::SparcV8Subtarget(const Module &M, const std::string &FS) { + // Set the default features. + IsV9 = false; + V8DeprecatedInsts = false; + IsVIS = false; + // Determine default and user specified characteristics std::string CPU = "generic"; diff --git a/lib/Target/SparcV8/SparcV8Subtarget.cpp b/lib/Target/SparcV8/SparcV8Subtarget.cpp index 5a08cd2bc4a..9666ea9d454 100644 --- a/lib/Target/SparcV8/SparcV8Subtarget.cpp +++ b/lib/Target/SparcV8/SparcV8Subtarget.cpp @@ -16,6 +16,11 @@ using namespace llvm; SparcV8Subtarget::SparcV8Subtarget(const Module &M, const std::string &FS) { + // Set the default features. + IsV9 = false; + V8DeprecatedInsts = false; + IsVIS = false; + // Determine default and user specified characteristics std::string CPU = "generic";