summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/SelectionDAG
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2017-06-15 17:58:24 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2017-06-15 17:58:24 +0000
commit00a970a84be572db73fda75659a52e4dac50d99c (patch)
tree7f9de9d089ca75ceadacfe6debe4116e9a64247b /llvm/lib/CodeGen/SelectionDAG
parent6eec9e21a5e6d0b5d59855c821d8ada8565824ac (diff)
downloadbcm5719-llvm-00a970a84be572db73fda75659a52e4dac50d99c.tar.gz
bcm5719-llvm-00a970a84be572db73fda75659a52e4dac50d99c.zip
Fold variable into assert.
Silences an unused variable warning in Release builds. llvm-svn: 305488
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
index 28e0de0b114..3d42990667e 100644
--- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
@@ -3582,8 +3582,7 @@ void SelectionDAGBuilder::visitLoad(const LoadInst &I) {
}
void SelectionDAGBuilder::visitStoreToSwiftError(const StoreInst &I) {
- const TargetLowering &TLI = DAG.getTargetLoweringInfo();
- assert(TLI.supportSwiftError() &&
+ assert(DAG.getTargetLoweringInfo().supportSwiftError() &&
"call visitStoreToSwiftError when backend supports swifterror");
SmallVector<EVT, 4> ValueVTs;
OpenPOWER on IntegriCloud