[PATCH] D123384: Removed Expected Compilation Error

Priyansh Singh via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Apr 8 05:33:50 PDT 2022


ps-19 created this revision.
ps-19 added reviewers: aaron.ballman, ktkachov, kbarton, beanz.
Herald added a subscriber: hiraditya.
Herald added a project: All.
ps-19 requested review of this revision.
Herald added a project: LLVM.

As given here <https://www.programiz.com/cpp-programming/library-function/cstdlib/abs> , https://github.com/llvm/llvm-project/blob/main/llvm/lib/Transforms/Scalar/AlignmentFromAssumptions.cpp#L114

abs is defined under cstdlib header file which is missing.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D123384

Files:
  llvm/lib/Transforms/Scalar/AlignmentFromAssumptions.cpp


Index: llvm/lib/Transforms/Scalar/AlignmentFromAssumptions.cpp
===================================================================
--- llvm/lib/Transforms/Scalar/AlignmentFromAssumptions.cpp
+++ llvm/lib/Transforms/Scalar/AlignmentFromAssumptions.cpp
@@ -32,6 +32,7 @@
 #include "llvm/Support/Debug.h"
 #include "llvm/Support/raw_ostream.h"
 #include "llvm/Transforms/Scalar.h"
+#include <cstdlib>
 
 #define AA_NAME "alignment-from-assumptions"
 #define DEBUG_TYPE AA_NAME


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D123384.421500.patch
Type: text/x-patch
Size: 474 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220408/5185b05e/attachment.bin>


More information about the llvm-commits mailing list