]> granicus.if.org Git - clang/commitdiff
[CodeGen] Surround assertion with parens and format.
authorDavide Italiano <davide@freebsd.org>
Wed, 31 May 2017 18:51:36 +0000 (18:51 +0000)
committerDavide Italiano <davide@freebsd.org>
Wed, 31 May 2017 18:51:36 +0000 (18:51 +0000)
This should placate GCC7 with -Werror.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@304322 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/CodeGenModule.cpp

index e4e5fce02279777f754628daf569129daf41bb7e..769027ef8d1f06aaf5cb54edf412928f40a40514 100644 (file)
@@ -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