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 e5fb656 commit 3d8a44dCopy full SHA for 3d8a44d
clang/lib/AST/Interp/InterpFrame.cpp
@@ -209,10 +209,8 @@ Pointer InterpFrame::getLocalPointer(unsigned Offset) const {
209
210
Pointer InterpFrame::getParamPointer(unsigned Off) {
211
// Return the block if it was created previously.
212
- auto Pt = Params.find(Off);
213
- if (Pt != Params.end()) {
+ if (auto Pt = Params.find(Off); Pt != Params.end())
214
return Pointer(reinterpret_cast<Block *>(Pt->second.get()));
215
- }
216
217
// Allocate memory to store the parameter and the block metadata.
218
const auto &Desc = Func->getParamDescriptor(Off);
0 commit comments