projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f6c54a6
)
Try to fix bots. We shouldn't be setting the entrybuilder's DL to a null one.
author
Amara Emerson
<amara@apple.com>
Thu, 29 Apr 2021 10:40:50 +0000
(
03:40
-0700)
committer
Amara Emerson
<amara@apple.com>
Thu, 29 Apr 2021 10:51:10 +0000
(
03:51
-0700)
This was causing a DILocation verifier error, the old code path didn't try to do
this when building constants via the finishPendingPhis() method.
llvm/lib/CodeGen/GlobalISel/IRTranslator.cpp
patch
|
blob
|
history
diff --git
a/llvm/lib/CodeGen/GlobalISel/IRTranslator.cpp
b/llvm/lib/CodeGen/GlobalISel/IRTranslator.cpp
index
818c4c5
..
01295a0
100644
(file)
--- a/
llvm/lib/CodeGen/GlobalISel/IRTranslator.cpp
+++ b/
llvm/lib/CodeGen/GlobalISel/IRTranslator.cpp
@@
-2864,8
+2864,6
@@
bool IRTranslator::translate(const Constant &C, Register Reg) {
EntryBuilder->setDebugLoc(DILocation::get(C.getContext(), 0, 0,
CurrInstDL.getScope(),
CurrInstDL.getInlinedAt()));
- else
- EntryBuilder->setDebugLoc(DebugLoc());
if (auto CI = dyn_cast<ConstantInt>(&C))
EntryBuilder->buildConstant(Reg, *CI);