[llvm] r368860 - [NFC][AIX] Change assertion
Xiangling Liao via llvm-commits
llvm-commits at lists.llvm.org
Wed Aug 14 07:57:26 PDT 2019
Author: xiangling_liao
Date: Wed Aug 14 07:57:25 2019
New Revision: 368860
URL: http://llvm.org/viewvc/llvm-project?rev=368860&view=rev
Log:
[NFC][AIX] Change assertion
Address one left comment on https://reviews.llvm.org/D63547. A minor
change for assertion.
Differential Revision: https://reviews.llvm.org/D63547
Modified:
llvm/trunk/lib/Target/PowerPC/PPCISelDAGToDAG.cpp
Modified: llvm/trunk/lib/Target/PowerPC/PPCISelDAGToDAG.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/PowerPC/PPCISelDAGToDAG.cpp?rev=368860&r1=368859&r2=368860&view=diff
==============================================================================
--- llvm/trunk/lib/Target/PowerPC/PPCISelDAGToDAG.cpp (original)
+++ llvm/trunk/lib/Target/PowerPC/PPCISelDAGToDAG.cpp Wed Aug 14 07:57:25 2019
@@ -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)
More information about the llvm-commits
mailing list