summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOren Ben Simhon <oren.ben.simhon@intel.com>2016-12-21 09:47:31 +0000
committerOren Ben Simhon <oren.ben.simhon@intel.com>2016-12-21 09:47:31 +0000
commitcb692157b761b8a5c258a29a449cf19e7253d460 (patch)
treec24488ab8349804c3a765c55d02585ceb5a02240
parentd45006530833d60a2d8d961064eda5b751575b86 (diff)
downloadbcm5719-llvm-cb692157b761b8a5c258a29a449cf19e7253d460.tar.gz
bcm5719-llvm-cb692157b761b8a5c258a29a449cf19e7253d460.zip
[X86] Vectorcall Calling Convention - Adding CodeGen Complete Support
Fixing a warning. llvm-svn: 290248
-rw-r--r--llvm/lib/Target/X86/X86ISelLowering.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/lib/Target/X86/X86ISelLowering.cpp b/llvm/lib/Target/X86/X86ISelLowering.cpp
index a816c062acc..b9f506deeb6 100644
--- a/llvm/lib/Target/X86/X86ISelLowering.cpp
+++ b/llvm/lib/Target/X86/X86ISelLowering.cpp
@@ -2837,8 +2837,8 @@ SDValue X86TargetLowering::LowerFormalArguments(
// The next loop assumes that the locations are in the same order of the
// input arguments.
- assert(isSortedByValueNo(ArgLocs) &&
- "Argument Location list must be sorted before lowering");
+ if (!isSortedByValueNo(ArgLocs))
+ llvm_unreachable("Argument Location list must be sorted before lowering");
SDValue ArgValue;
for (unsigned I = 0, InsIndex = 0, E = ArgLocs.size(); I != E;
@@ -3349,8 +3349,8 @@ X86TargetLowering::LowerCall(TargetLowering::CallLoweringInfo &CLI,
// The next loop assumes that the locations are in the same order of the
// input arguments.
- assert(isSortedByValueNo(ArgLocs) &&
- "Argument Location list must be sorted before lowering");
+ if (!isSortedByValueNo(ArgLocs))
+ llvm_unreachable("Argument Location list must be sorted before lowering");
// Walk the register/memloc assignments, inserting copies/loads. In the case
// of tail call optimization arguments are handle later.
OpenPOWER on IntegriCloud