diff options
author | Tobias Grosser <tobias@grosser.es> | 2017-07-19 11:30:18 +0000 |
---|---|---|
committer | Tobias Grosser <tobias@grosser.es> | 2017-07-19 11:30:18 +0000 |
commit | 37eadd55f71c4317ba26e294a9ae976c88e52140 (patch) | |
tree | 84c61d91ac736bb7219eeb760268628de4c40ae8 /polly | |
parent | 87d7c68dc4b6de4010095962c6e28ca7a8cb4a56 (diff) | |
download | llvm-37eadd55f71c4317ba26e294a9ae976c88e52140.zip llvm-37eadd55f71c4317ba26e294a9ae976c88e52140.tar.gz llvm-37eadd55f71c4317ba26e294a9ae976c88e52140.tar.bz2 |
[ScopInfo] Use AnyPHINode in tryGetValueStored()
This was an oversight in the previous commit. Michael already suggested this
beforehand.
llvm-svn: 308440
Diffstat (limited to 'polly')
-rw-r--r-- | polly/include/polly/ScopInfo.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/polly/include/polly/ScopInfo.h b/polly/include/polly/ScopInfo.h index 8089c54..b18ef06 100644 --- a/polly/include/polly/ScopInfo.h +++ b/polly/include/polly/ScopInfo.h @@ -896,7 +896,7 @@ public: /// might be stored. In this case nullptr is returned. Value *tryGetValueStored() { assert(isWrite() && "Only write statement store values"); - if (isPHIKind()) { + if (isAnyPHIKind()) { if (Incoming.size() == 1) return Incoming[0].second; return nullptr; |