summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/SelectionDAG/FastISel.cpp
diff options
context:
space:
mode:
authorAdrian Prantl <aprantl@apple.com>2017-08-01 22:37:35 +0000
committerAdrian Prantl <aprantl@apple.com>2017-08-01 22:37:35 +0000
commitaac78ce47e61bde4ac7b6f01f1bf7ef1909b4701 (patch)
tree8af7efb600c00b09f1a87a3e430ec62c16121c98 /llvm/lib/CodeGen/SelectionDAG/FastISel.cpp
parent5d960ec4207f6db9db46d81ad7cb977b22a4c759 (diff)
downloadbcm5719-llvm-aac78ce47e61bde4ac7b6f01f1bf7ef1909b4701.tar.gz
bcm5719-llvm-aac78ce47e61bde4ac7b6f01f1bf7ef1909b4701.zip
Use helper function instead of manually constructing DBG_VALUEs (NFC)
rdar://problem/33580047 llvm-svn: 309757
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/FastISel.cpp')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/FastISel.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/FastISel.cpp b/llvm/lib/CodeGen/SelectionDAG/FastISel.cpp
index 89b688bb03f..959735d66c4 100644
--- a/llvm/lib/CodeGen/SelectionDAG/FastISel.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/FastISel.cpp
@@ -1212,11 +1212,8 @@ bool FastISel::selectIntrinsicCall(const IntrinsicInst *II) {
if (!V) {
// Currently the optimizer can produce this; insert an undef to
// help debugging. Probably the optimizer should not do this.
- BuildMI(*FuncInfo.MBB, FuncInfo.InsertPt, DbgLoc, II)
- .addReg(0U)
- .addImm(0U)
- .addMetadata(DI->getVariable())
- .addMetadata(DI->getExpression());
+ BuildMI(*FuncInfo.MBB, FuncInfo.InsertPt, DbgLoc, II, false, 0U,
+ DI->getVariable(), DI->getExpression());
} else if (const auto *CI = dyn_cast<ConstantInt>(V)) {
if (CI->getBitWidth() > 64)
BuildMI(*FuncInfo.MBB, FuncInfo.InsertPt, DbgLoc, II)
OpenPOWER on IntegriCloud