diff options
author | Davide Italiano <davide@freebsd.org> | 2017-05-31 18:51:36 +0000 |
---|---|---|
committer | Davide Italiano <davide@freebsd.org> | 2017-05-31 18:51:36 +0000 |
commit | 5e458adf76c51c24d47410841e6893b3a44fbf78 (patch) | |
tree | 100421331925ec57e8ebdfc89116516644e10b6e /clang/lib/CodeGen/CodeGenModule.cpp | |
parent | 3424373f303dbbfefa6c05660efb630850aa1baf (diff) | |
download | bcm5719-llvm-5e458adf76c51c24d47410841e6893b3a44fbf78.tar.gz bcm5719-llvm-5e458adf76c51c24d47410841e6893b3a44fbf78.zip |
[CodeGen] Surround assertion with parens and format.
This should placate GCC7 with -Werror.
llvm-svn: 304322
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
-rw-r--r-- | clang/lib/CodeGen/CodeGenModule.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/clang/lib/CodeGen/CodeGenModule.cpp b/clang/lib/CodeGen/CodeGenModule.cpp index e4e5fce0227..769027ef8d1 100644 --- a/clang/lib/CodeGen/CodeGenModule.cpp +++ b/clang/lib/CodeGen/CodeGenModule.cpp @@ -472,10 +472,10 @@ void CodeGenModule::Release() { // Width of wchar_t in bytes uint64_t WCharWidth = Context.getTypeSizeInChars(Context.getWideCharType()).getQuantity(); - assert(LangOpts.ShortWChar || - llvm::TargetLibraryInfoImpl::getTargetWCharSize(Target.getTriple()) == - Target.getWCharWidth() / 8 && - "LLVM wchar_t size out of sync"); + assert((LangOpts.ShortWChar || + llvm::TargetLibraryInfoImpl::getTargetWCharSize(Target.getTriple()) == + Target.getWCharWidth() / 8) && + "LLVM wchar_t size out of sync"); // We need to record the widths of enums and wchar_t, so that we can generate // the correct build attributes in the ARM backend. wchar_size is also used by |