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 | 1835107ed02469fda5cf25b1d5efbb90a042b5bc (patch) | |
| tree | 7ec1ad602c14e0241e5906c84e33d3407d9d81bd /clang/lib/CodeGen | |
| parent | b012ca92ac2a6e298422ae59987a5530faf16d0e (diff) | |
| download | bcm5719-llvm-1835107ed02469fda5cf25b1d5efbb90a042b5bc.tar.gz bcm5719-llvm-1835107ed02469fda5cf25b1d5efbb90a042b5bc.zip | |
Make the StackProtector bitfield use enums instead of obscure numbers.
llvm-svn: 74414
Diffstat (limited to 'clang/lib/CodeGen')
| -rw-r--r-- | clang/lib/CodeGen/CGCall.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/CodeGen/CGCall.cpp b/clang/lib/CodeGen/CGCall.cpp index 61b6737be11..8ff58914cb6 100644 --- a/clang/lib/CodeGen/CGCall.cpp +++ b/clang/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(); |

