We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c57c5f5 commit 25d7fd3Copy full SHA for 25d7fd3
llvm/lib/Analysis/LazyValueInfo.cpp
@@ -1745,14 +1745,10 @@ LazyValueInfoImpl &LazyValueInfo::getOrCreateImpl(const Module *M) {
1745
Intrinsic::getDeclarationIfExists(M, Intrinsic::experimental_guard);
1746
PImpl = new LazyValueInfoImpl(AC, DL, GuardDecl);
1747
}
1748
- return *static_cast<LazyValueInfoImpl *>(PImpl);
+ return *PImpl;
1749
1750
1751
-LazyValueInfoImpl *LazyValueInfo::getImpl() {
1752
- if (!PImpl)
1753
- return nullptr;
1754
- return static_cast<LazyValueInfoImpl *>(PImpl);
1755
-}
+LazyValueInfoImpl *LazyValueInfo::getImpl() { return PImpl; }
1756
1757
LazyValueInfo::~LazyValueInfo() { releaseMemory(); }
1758
0 commit comments