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 25871b3 commit 1752b7bCopy full SHA for 1752b7b
clang/lib/AST/Interp/InterpFrame.h
@@ -15,8 +15,6 @@
15
16
#include "Frame.h"
17
#include "Program.h"
18
-#include <cstdint>
19
-#include <vector>
20
21
namespace clang {
22
namespace interp {
@@ -85,11 +83,9 @@ class InterpFrame final : public Frame {
85
83
/// Returns the value of an argument.
86
84
template <typename T> const T &getParam(unsigned Offset) const {
87
auto Pt = Params.find(Offset);
88
- if (Pt == Params.end()) {
+ if (Pt == Params.end())
89
return stackRef<T>(Offset);
90
- } else {
91
- return Pointer(reinterpret_cast<Block *>(Pt->second.get())).deref<T>();
92
- }
+ return Pointer(reinterpret_cast<Block *>(Pt->second.get())).deref<T>();
93
}
94
95
/// Mutates a local copy of a parameter.
0 commit comments