diff options
| -rw-r--r-- | polly/lib/Support/VirtualInstruction.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/polly/lib/Support/VirtualInstruction.cpp b/polly/lib/Support/VirtualInstruction.cpp index d2b910100d9..614ea9243d9 100644 --- a/polly/lib/Support/VirtualInstruction.cpp +++ b/polly/lib/Support/VirtualInstruction.cpp @@ -38,7 +38,7 @@ VirtualUse VirtualUse::create(Scop *S, ScopStmt *UserStmt, Loop *UserScope, if (isa<BasicBlock>(Val)) return VirtualUse(UserStmt, Val, Block, nullptr, nullptr); - if (isa<llvm::Constant>(Val)) + if (isa<llvm::Constant>(Val) || isa<MetadataAsValue>(Val)) return VirtualUse(UserStmt, Val, Constant, nullptr, nullptr); // Is the value synthesizable? If the user has been pruned |

