diff options
| author | Chris Lattner <sabre@nondot.org> | 2010-12-19 05:51:54 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2010-12-19 05:51:54 +0000 |
| commit | 3337a81450a943f35e5edc7c1e2d413890b76d80 (patch) | |
| tree | c893295407d3cce94ccd37366476d5891c1f0777 /llvm/lib/Transforms | |
| parent | 77a8a71414e46d43b3111fa157eca0262157ab09 (diff) | |
| download | bcm5719-llvm-3337a81450a943f35e5edc7c1e2d413890b76d80.tar.gz bcm5719-llvm-3337a81450a943f35e5edc7c1e2d413890b76d80.zip | |
fix PR8602, a bug in an assertion: a volatile store *of* a pointer
does not make the alias set for that pointer volatile, just stores
*to* the pointer.
llvm-svn: 122171
Diffstat (limited to 'llvm/lib/Transforms')
| -rw-r--r-- | llvm/lib/Transforms/Scalar/LICM.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Scalar/LICM.cpp b/llvm/lib/Transforms/Scalar/LICM.cpp index 3a6604357d4..46fffccb3ac 100644 --- a/llvm/lib/Transforms/Scalar/LICM.cpp +++ b/llvm/lib/Transforms/Scalar/LICM.cpp @@ -691,8 +691,8 @@ void LICM::PromoteAliasSet(AliasSet &AS) { if (isa<LoadInst>(Use)) assert(!cast<LoadInst>(Use)->isVolatile() && "AST broken"); else if (isa<StoreInst>(Use)) { - assert(!cast<StoreInst>(Use)->isVolatile() && "AST broken"); if (Use->getOperand(0) == ASIV) return; + assert(!cast<StoreInst>(Use)->isVolatile() && "AST broken"); } else return; // Not a load or store. |

