diff options
| author | Philip Reames <listmail@philipreames.com> | 2021-04-20 15:37:49 -0700 |
|---|---|---|
| committer | Philip Reames <listmail@philipreames.com> | 2021-04-20 15:38:38 -0700 |
| commit | 4824d876f00a08e00350dab347c6953d552ec83b (patch) | |
| tree | 6d5f9f3902c9340bc02b8b3bf55f0a372c3c0b2b /llvm/lib/CodeGen/StackProtector.cpp | |
| parent | 9f1e2ee46251b09565eb87124aa836291aaf799d (diff) | |
Revert "Allow invokable sub-classes of IntrinsicInst"
This reverts commit d87b9b81ccb95217181ce75515c6c68bbb408ca4.
Post commit review raised concerns, reverting while discussion happens.
Diffstat (limited to 'llvm/lib/CodeGen/StackProtector.cpp')
| -rw-r--r-- | llvm/lib/CodeGen/StackProtector.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/StackProtector.cpp b/llvm/lib/CodeGen/StackProtector.cpp index b0629b31899f..ff6ff6dfe03c 100644 --- a/llvm/lib/CodeGen/StackProtector.cpp +++ b/llvm/lib/CodeGen/StackProtector.cpp @@ -255,7 +255,7 @@ static const CallInst *findStackProtectorIntrinsic(Function &F) { for (const Instruction &I : BB) if (const auto *II = dyn_cast<IntrinsicInst>(&I)) if (II->getIntrinsicID() == Intrinsic::stackprotector) - return cast<CallInst>(II); + return II; return nullptr; } |
