X-Git-Url: http://plrg.eecs.uci.edu/git/?a=blobdiff_plain;f=lib%2FIR%2FCore.cpp;h=591dafa22a4b05933e2fa7176b0187540a9f518a;hb=3569d3c5ebfff8b9b20c47e7eb1ddf508e6e9bbf;hp=7f39c8085a69007d4263f0cd1c575a09f1f0550d;hpb=e51b530b1255624a0a170395ce2d950b56d6c7f3;p=oota-llvm.git diff --git a/lib/IR/Core.cpp b/lib/IR/Core.cpp index 7f39c8085a6..591dafa22a4 100644 --- a/lib/IR/Core.cpp +++ b/lib/IR/Core.cpp @@ -1722,7 +1722,7 @@ void LLVMSetFunctionCallConv(LLVMValueRef Fn, unsigned CC) { const char *LLVMGetGC(LLVMValueRef Fn) { Function *F = unwrap(Fn); - return F->hasGC()? F->getGC() : nullptr; + return F->hasGC()? F->getGC().c_str() : nullptr; } void LLVMSetGC(LLVMValueRef Fn, const char *GC) {