diff options
| author | Pete Cooper <peter_cooper@apple.com> | 2015-05-20 17:16:39 +0000 |
|---|---|---|
| committer | Pete Cooper <peter_cooper@apple.com> | 2015-05-20 17:16:39 +0000 |
| commit | 9e1d335697bcc5ac02e4c097a03c3478b76f7ec6 (patch) | |
| tree | f4e965c41d62f7047f8dcfa6d46f22a75796c554 /llvm/lib/CodeGen/GCRootLowering.cpp | |
| parent | 0ebbe74b73c6b1e9167a7fe89cbccc6522b392e2 (diff) | |
| download | bcm5719-llvm-9e1d335697bcc5ac02e4c097a03c3478b76f7ec6.tar.gz bcm5719-llvm-9e1d335697bcc5ac02e4c097a03c3478b76f7ec6.zip | |
Change Function::getIntrinsicID() to return an Intrinsic::ID. NFC.
Now that Intrinsic::ID is a typed enum, we can forward declare it and so return it from this method.
This updates all users which were either using an unsigned to store it, or had a now unnecessary cast.
llvm-svn: 237810
Diffstat (limited to 'llvm/lib/CodeGen/GCRootLowering.cpp')
| -rw-r--r-- | llvm/lib/CodeGen/GCRootLowering.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/GCRootLowering.cpp b/llvm/lib/CodeGen/GCRootLowering.cpp index e6fd79c9798..d8edd7e4063 100644 --- a/llvm/lib/CodeGen/GCRootLowering.cpp +++ b/llvm/lib/CodeGen/GCRootLowering.cpp @@ -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; |

