summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target
diff options
context:
space:
mode:
authorXiangling Liao <xiangxdh@gmail.com>2019-08-14 14:57:25 +0000
committerXiangling Liao <xiangxdh@gmail.com>2019-08-14 14:57:25 +0000
commit49661f94c8d07b0db9190261c47138b99a47546b (patch)
tree5fcd6999e5bd3558ab3fe12ec690682b37b342ca /llvm/lib/Target
parentaf93ca63c3ba7d50e696b20d3c53d9cbf14769b4 (diff)
downloadbcm5719-llvm-49661f94c8d07b0db9190261c47138b99a47546b.tar.gz
bcm5719-llvm-49661f94c8d07b0db9190261c47138b99a47546b.zip
[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 llvm-svn: 368860
Diffstat (limited to 'llvm/lib/Target')
-rw-r--r--llvm/lib/Target/PowerPC/PPCISelDAGToDAG.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/PowerPC/PPCISelDAGToDAG.cpp b/llvm/lib/Target/PowerPC/PPCISelDAGToDAG.cpp
index b0fa571bd2e..e3795129db8 100644
--- a/llvm/lib/Target/PowerPC/PPCISelDAGToDAG.cpp
+++ b/llvm/lib/Target/PowerPC/PPCISelDAGToDAG.cpp
@@ -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)
OpenPOWER on IntegriCloud