Fix PR16508.
[oota-llvm.git] / lib / CodeGen / MachineBasicBlock.cpp
index 78e9950e5ef5604d10bedf93fdaaabd11feb3c72..feba07898af6d2a6b9b7ddcf96d949f2aaa39b1b 100644 (file)
@@ -51,7 +51,7 @@ MCSymbol *MachineBasicBlock::getSymbol() const {
   if (!CachedMCSymbol) {
     const MachineFunction *MF = getParent();
     MCContext &Ctx = MF->getContext();
-    const char *Prefix = Ctx.getAsmInfo().getPrivateGlobalPrefix();
+    const char *Prefix = Ctx.getAsmInfo()->getPrivateGlobalPrefix();
     CachedMCSymbol = Ctx.GetOrCreateSymbol(Twine(Prefix) + "BB" +
                                            Twine(MF->getFunctionNumber()) +
                                            "_" + Twine(getNumber()));