- Timestamp:
- Oct 27, 2020, 3:29:39 PM (4 years ago)
- Branches:
- ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast-unique-expr, pthread-emulation, qualifiedEnum
- Children:
- 53d55b6
- Parents:
- cb25fc9
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/AST/Pass.hpp
rcb25fc9 r5d2db68 65 65 // corresponding postvisit/postmutate teminates. 66 66 // | WithVisitorRef - provides an pointer to the templated visitor wrapper 67 // | WithIsInFuncion - provides a way to access the inFunction 67 68 // | WithSymbolTable - provides symbol table functionality 68 69 // | WithForallSubstitutor - maintains links between TypeInstType and TypeDecl under mutation … … 388 389 /// Used to track whether or not we are in a function. 389 390 class WithIsInFuncion { 390 const bool * const __in_funct_ptr = nullptr;391 const bool * const infunc_ptr = nullptr; 391 392 392 393 template<typename core_t> … … 394 395 public: 395 396 bool isInFunction() { 396 assert( __in_funct_ptr );397 return * __in_funct_ptr;397 assert( infunc_ptr ); 398 return *infunc_ptr; 398 399 } 399 400 };
Note: See TracChangeset
for help on using the changeset viewer.