diff --git a/llvm/lib/Target/X86/InstSelectSimple.cpp b/llvm/lib/Target/X86/InstSelectSimple.cpp index a8ed6f69c0e6..4cb6562211da 100644 --- a/llvm/lib/Target/X86/InstSelectSimple.cpp +++ b/llvm/lib/Target/X86/InstSelectSimple.cpp @@ -207,7 +207,7 @@ namespace { // the register here... // if (Constant *C = dyn_cast(V)) { - copyConstantToRegister(C, Reg, BB, IPt); + copyConstantToRegister(C, Reg, MBB, IPt); } else if (GlobalValue *GV = dyn_cast(V)) { // Move the address of the global into the register BMI(MBB, IPt, X86::MOVir32, 1, Reg).addReg(GV);