]> granicus.if.org Git - llvm/commitdiff
[NFC][AIX] Change assertion
authorXiangling Liao <xiangxdh@gmail.com>
Wed, 14 Aug 2019 14:57:25 +0000 (14:57 +0000)
committerXiangling Liao <xiangxdh@gmail.com>
Wed, 14 Aug 2019 14:57:25 +0000 (14:57 +0000)
Address one left comment on https://reviews.llvm.org/D63547. A minor
change for assertion.

Differential Revision: https://reviews.llvm.org/D63547

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

lib/Target/PowerPC/PPCISelDAGToDAG.cpp

index b0fa571bd2eba8d41bf3457004753925e1fccafb..e3795129db88d953eafe17d77dc9d03087d3a4f9 100644 (file)
@@ -5073,7 +5073,7 @@ void PPCDAGToDAGISel::Select(SDNode *N) {
 
     // PowerPC only support small, medium and large code model.
     const CodeModel::Model CModel = TM.getCodeModel();
-    assert((CModel != CodeModel::Tiny || CModel != CodeModel::Kernel) &&
+    assert(!(CModel == CodeModel::Tiny || CModel == CodeModel::Kernel) &&
            "PowerPC doesn't support tiny or kernel code models.");
 
     if (isAIXABI && CModel == CodeModel::Medium)