We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 214ef54 commit f000aebCopy full SHA for f000aeb
1 file changed
lib/PhasarLLVM/Utils/Annotation.cpp
@@ -110,8 +110,7 @@ llvm::StringRef GlobalAnnotation::retrieveString(unsigned Idx) const {
110
const auto *AnnotationGepOp = AnnotationStruct->getOperand(Idx);
111
if (const auto *ConstExpr =
112
llvm::dyn_cast<llvm::ConstantExpr>(AnnotationGepOp)) {
113
- if (true // ConstExpr->isGEPWithNoNotionalOverIndexing()
114
- ) {
+ if (llvm::isa<llvm::GEPOperator>(ConstExpr)) {
115
if (const auto *GlobalVar =
116
llvm::dyn_cast<llvm::GlobalVariable>(ConstExpr->getOperand(0))) {
117
if (GlobalVar->hasInitializer()) {
0 commit comments