[Fix] [Fortran Support] Fix variable name & make testcase activate on release
There was:
#ifdef NDEBUG
This should be:
#ifndef NDEBUG
Also, the variable name was incorrect. Fixed the variable name.
llvm-svn: 302696
diff --git a/polly/lib/Analysis/ScopInfo.cpp b/polly/lib/Analysis/ScopInfo.cpp
index 30870db..bfc27a6 100644
--- a/polly/lib/Analysis/ScopInfo.cpp
+++ b/polly/lib/Analysis/ScopInfo.cpp
@@ -1039,8 +1039,8 @@
// TODO: write checks to make sure it looks _exactly_ like a Fortran array
// descriptor
-#ifdef NDEBUG
- StructType *ty = dyn_cast<StructType>(Descriptor->getValueType());
+#ifndef NDEBUG
+ StructType *ty = dyn_cast<StructType>(FAD->getValueType());
assert(ty && "expected value of type Fortran array descriptor");
assert(ty->hasName() && ty->getName().startswith("struct.array") &&
"expected global to follow Fortran array descriptor type naming "