Skip to content

Commit

Permalink
fix(instrumentation): stability improvement, allow invoke instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasrothenberger committed Oct 23, 2024
1 parent dca8e48 commit 5a61097
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion DiscoPoP/static_analysis/createCUs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@ void DiscoPoP::createCUs(Region *TopRegion, set<string> &globalVariablesSet, vec
}
} else // get name of the indirect function which is called
{
Value *v = (cast<CallInst>(instruction))->getCalledOperand();
Value* v = (cast<CallBase>(instruction))->getCalledOperand();
Value *sv = v->stripPointerCasts();
n->name = sv->getName().str();
}
Expand Down
3 changes: 3 additions & 0 deletions scripts/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,15 @@ configure_file(MPI_LINKER_wrapper.sh MPI_LINKER_wrapper.sh COPYONLY)
# create symlinks to files
set(DP_LOCAL_BIN_DIR "$ENV{HOME}/.local/bin")
if(EXISTS ${DP_LOCAL_BIN_DIR})
execute_process(COMMAND rm -f ${DP_LOCAL_BIN_DIR}/discopop_cc)
message(STATUS "Creating symlink ${DP_LOCAL_BIN_DIR}/discopop_cc to ${CMAKE_CURRENT_BINARY_DIR}/CC_wrapper.sh")
execute_process(COMMAND ln -sf ${CMAKE_CURRENT_BINARY_DIR}/CC_wrapper.sh ${DP_LOCAL_BIN_DIR}/discopop_cc)

execute_process(COMMAND rm -f ${DP_LOCAL_BIN_DIR}/discopop_cxx)
message(STATUS "Creating symlink ${DP_LOCAL_BIN_DIR}/discopop_cxx to ${CMAKE_CURRENT_BINARY_DIR}/CXX_wrapper.sh")
execute_process(COMMAND ln -sf ${CMAKE_CURRENT_BINARY_DIR}/CXX_wrapper.sh ${DP_LOCAL_BIN_DIR}/discopop_cxx)

execute_process(COMMAND rm -f ${DP_LOCAL_BIN_DIR}/discopop_cmake)
message(STATUS "Creating symlink ${DP_LOCAL_BIN_DIR}/discopop_cmake to ${CMAKE_CURRENT_BINARY_DIR}/CMAKE_wrapper.sh")
execute_process(COMMAND ln -sf ${CMAKE_CURRENT_BINARY_DIR}/CMAKE_wrapper.sh ${DP_LOCAL_BIN_DIR}/discopop_cmake)
else()
Expand Down

0 comments on commit 5a61097

Please sign in to comment.