diff options
Diffstat (limited to 'lib/AST/Expr.cpp')
-rw-r--r-- | lib/AST/Expr.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/AST/Expr.cpp b/lib/AST/Expr.cpp index c21da7c4d0..69fd51f754 100644 --- a/lib/AST/Expr.cpp +++ b/lib/AST/Expr.cpp @@ -19,7 +19,7 @@ namespace flang { void APNumericStorage::setIntValue(ASTContext &C, const APInt &Val) { if (hasAllocation()) - C.Deallocate(pVal, sizeof(uint64_t[llvm::APInt::getNumWords(BitWidth)])); + C.Deallocate(pVal, sizeof(uint64_t) * llvm::APInt::getNumWords(BitWidth)); BitWidth = Val.getBitWidth(); unsigned NumWords = Val.getNumWords(); |