diff options
author | Tim Northover <tnorthover@apple.com> | 2017-03-06 18:36:40 +0000 |
---|---|---|
committer | Tim Northover <tnorthover@apple.com> | 2017-03-06 18:36:40 +0000 |
commit | 81dafc1c88717e6141a6173f100c3dd4b7b6ab17 (patch) | |
tree | 8b60ec3ad7e36333f157e27771725786665b3f30 /llvm/lib/CodeGen/GlobalISel/IRTranslator.cpp | |
parent | fb1a0a0d2facc5cff81fad4e9dcd18b176bcf37a (diff) | |
download | bcm5719-llvm-81dafc1c88717e6141a6173f100c3dd4b7b6ab17.tar.gz bcm5719-llvm-81dafc1c88717e6141a6173f100c3dd4b7b6ab17.zip |
GlobalISel: add buildUndef method to MachineIRBuilder. NFC.
llvm-svn: 297044
Diffstat (limited to 'llvm/lib/CodeGen/GlobalISel/IRTranslator.cpp')
-rw-r--r-- | llvm/lib/CodeGen/GlobalISel/IRTranslator.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/GlobalISel/IRTranslator.cpp b/llvm/lib/CodeGen/GlobalISel/IRTranslator.cpp index c78de71a0e2..6c403a8212a 100644 --- a/llvm/lib/CodeGen/GlobalISel/IRTranslator.cpp +++ b/llvm/lib/CodeGen/GlobalISel/IRTranslator.cpp @@ -986,7 +986,7 @@ bool IRTranslator::translate(const Constant &C, unsigned Reg) { else if (auto CF = dyn_cast<ConstantFP>(&C)) EntryBuilder.buildFConstant(Reg, *CF); else if (isa<UndefValue>(C)) - EntryBuilder.buildInstr(TargetOpcode::IMPLICIT_DEF).addDef(Reg); + EntryBuilder.buildUndef(Reg); else if (isa<ConstantPointerNull>(C)) EntryBuilder.buildConstant(Reg, 0); else if (auto GV = dyn_cast<GlobalValue>(&C)) |