aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Target/X86/X86ISelSimple.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Target/X86/X86ISelSimple.cpp')
-rw-r--r--lib/Target/X86/X86ISelSimple.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Target/X86/X86ISelSimple.cpp b/lib/Target/X86/X86ISelSimple.cpp
index a8ed6f6..4cb6562 100644
--- a/lib/Target/X86/X86ISelSimple.cpp
+++ b/lib/Target/X86/X86ISelSimple.cpp
@@ -207,7 +207,7 @@ namespace {
// the register here...
//
if (Constant *C = dyn_cast<Constant>(V)) {
- copyConstantToRegister(C, Reg, BB, IPt);
+ copyConstantToRegister(C, Reg, MBB, IPt);
} else if (GlobalValue *GV = dyn_cast<GlobalValue>(V)) {
// Move the address of the global into the register
BMI(MBB, IPt, X86::MOVir32, 1, Reg).addReg(GV);