diff options
author | Bill Wendling <isanbard@gmail.com> | 2009-06-28 23:01:01 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2009-06-28 23:01:01 +0000 |
commit | 4ebe3e4c811a376c423a544f5e76ee2e96533324 (patch) | |
tree | e88708201a65e970635549e34585b10056f5eedd /lib/CodeGen/CGCall.cpp | |
parent | d966a55bccae13f34d18958877c5e71dd643a125 (diff) |
Make the StackProtector bitfield use enums instead of obscure numbers.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@74414 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGCall.cpp')
-rw-r--r-- | lib/CodeGen/CGCall.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/CodeGen/CGCall.cpp b/lib/CodeGen/CGCall.cpp index 61b6737be1..8ff58914cb 100644 --- a/lib/CodeGen/CGCall.cpp +++ b/lib/CodeGen/CGCall.cpp @@ -392,9 +392,9 @@ void CodeGenModule::ConstructAttributeList(const CGFunctionInfo &FI, if (CompileOpts.NoImplicitFloat) FuncAttrs |= llvm::Attribute::NoImplicitFloat; - if (Features.StackProtector == 1) + if (Features.getStackProtectorMode() == LangOptions::SSPOn) FuncAttrs |= llvm::Attribute::StackProtect; - else if (Features.StackProtector == 2) + else if (Features.getStackProtectorMode() == LangOptions::SSPReq) FuncAttrs |= llvm::Attribute::StackProtectReq; QualType RetTy = FI.getReturnType(); |