[TableGen] Make StringInit constructor take a StringRef instead of const std::string...
[oota-llvm.git] / lib / CodeGen / GCRootLowering.cpp
index e6fd79c9798d7f0602be5c9cd73374a2bd544a26..d8edd7e4063fc9758f33374dbe00e89f7797c357 100644 (file)
@@ -142,7 +142,7 @@ static bool CouldBecomeSafePoint(Instruction *I) {
   // llvm.gcroot is safe because it doesn't do anything at runtime.
   if (CallInst *CI = dyn_cast<CallInst>(I))
     if (Function *F = CI->getCalledFunction())
-      if (unsigned IID = F->getIntrinsicID())
+      if (Intrinsic::ID IID = F->getIntrinsicID())
         if (IID == Intrinsic::gcroot)
           return false;